[英]CSS how is width getting set?
我继承了一个上面放有幻灯片的网页,但我不知道如何更改包含幻灯片的<article>
的宽度。 我认为它是通过JavaScript来获取大小的,但是我已经搜索过了,无法确定在哪里。
如果您在页面上查看源代码,则不会在article标签中看到宽度,但是如果您使用firebug来查看样式,则会看到:
element.style { width: 565px; }
我在此处发布了示例版本: http : //208.112.58.198/help/index_new.htm 。
元素的CSS宽度由jquery插件应用 。
/help/wp-content/themes/Cobalt3/cobalt/js/main68b3.js
此文件行号#339具有以下代码。
$('#part-slideshow').carouFredSel({
height: 300,
width: '100%',
circular: true,
items: {
visible: 1,
height: 300,
},
scroll: {
items: 1,
fx: "crossfade",
duration: 1000,
easing: "swing"
},
auto: {
timeoutDuration: 5000,
delay: 5000,
pauseOnHover: true
},
pagination: '#pagination',
swipe: {
onTouch: true,
onMouse: true
},
responsive: true
});
该插件将一个resize
事件函数绑定到轮播元素,该函数根据屏幕尺寸设置元素宽度,因为在调用中添加了responsive: true
选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.