淘宝首页全屏轮播代码,如何让它居中显示
<DIVstyle="WIDTH:1260px;HEIGHT:450px"class="slider-promoJ_SliderJ_TWidget"data-widget...
<DIV style="WIDTH: 1260px; HEIGHT: 450px" class="slider-promo J_Slider J_TWidget" data-widget-config="{'effect':'fade','contentCls': 'lst-main', 'navCls': 'lst-trigger', 'activeTriggerCls': 'current'}" data-widget-type="Slide" data-type="fade">
<ul class=lst-main>
<li><A style="WIDTH: 1260px; HEIGHT: 450px" href="#" target=_blank><img src="http://img03.taobaocdn.com/imgextra/i3/908416891/T2gZDxXj0aXXXXXXXX_!!908416891.jpg" alt="" width="1260" height="450"></A></li>
<li><A style="WIDTH: 1260px; HEIGHT: 450px" href="#" target=_blank><img src="http://img03.taobaocdn.com/imgextra/i3/908416891/T2j306XdxdXXXXXXXX_!!908416891.jpg" alt="" width="1260" height="450"></A></li>
<li><A style="WIDTH: 1260px; HEIGHT: 450px" href="#" target=_blank><img src="http://img03.taobaocdn.com/imgextra/i3/908416891/T2JneoXXNcXXXXXXXX_!!908416891.jpg" alt="" width="1260" height="450"></A></li>
</ul></DIV>
加过居中代码后,在网页打开是居中的,但是放进淘宝950px的自定义模块中一点用都没有,它将多余950PX的宽度向右延伸,而不左右居中。 展开
<ul class=lst-main>
<li><A style="WIDTH: 1260px; HEIGHT: 450px" href="#" target=_blank><img src="http://img03.taobaocdn.com/imgextra/i3/908416891/T2gZDxXj0aXXXXXXXX_!!908416891.jpg" alt="" width="1260" height="450"></A></li>
<li><A style="WIDTH: 1260px; HEIGHT: 450px" href="#" target=_blank><img src="http://img03.taobaocdn.com/imgextra/i3/908416891/T2j306XdxdXXXXXXXX_!!908416891.jpg" alt="" width="1260" height="450"></A></li>
<li><A style="WIDTH: 1260px; HEIGHT: 450px" href="#" target=_blank><img src="http://img03.taobaocdn.com/imgextra/i3/908416891/T2JneoXXNcXXXXXXXX_!!908416891.jpg" alt="" width="1260" height="450"></A></li>
</ul></DIV>
加过居中代码后,在网页打开是居中的,但是放进淘宝950px的自定义模块中一点用都没有,它将多余950PX的宽度向右延伸,而不左右居中。 展开
6个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询