现在的位置: 首页 > 综合 > 正文

淘宝首页幻灯片(二) 居中按钮源代码

2013年06月04日 ⁄ 综合 ⁄ 共 1947字 ⁄ 字号 评论关闭

   今天的工作内容用到了淘宝店铺的首页幻灯片的,按钮居中的代码,代码的效果图如下

 

        下面装修页面使用的代码:

<div class="slider-promo" style="position: static; height: 586px"><!-- 此处定义幻灯片的高586px-->
	<div class="lst-trigger grid-s5m0" style="width: 1900px; height: 586px; top: 188px; left: 50%"><!--此处定义高宽和位置-->
		<div class="lst-trigger col-sub" style="width: 100%; height: 100%; top: -39px; left: 50%">
			<div class="J_TWidget" data-widget-config="{'effect':'fade','autoplay':'ture','activeTriggerCls': 'current','prevBtnCls':'prev','nextBtnCls':'next','navCls':'lst-trigger'}" data-widget-type="Carousel" style="width: 1900px; height: 586px; overflow: hidden"> <!--此处是幻灯片参数的设定-->
				<div class="J_TWidget" data-widget-config="{'trigger':'.first-trigger2','align':{'node':'.first-trigger2','offset':[0,-10],'points':['bc','bc']}}" data-widget-type="Popup" style="display: none">
<!--此处定义幻灯片按钮2的位置和属性-->					 </div>
				<div class="first-trigger2" style="width: 1900px; height: 586px">
					<div class="ks-switchable-content" style="width: 1900px; float: left; height: 586px">
						<div>
							<a data-attr-replace="[{'type':'href','desc':'轮播图片O1 宝贝页面地址,注意不是图片地址'}]" href="http://taoquan.taobao.com/coupon/shopbonus/buyer_apply.htm?activityId=31604387&sellerId=397341302" target="_blank"><img alt="" data-attr-replace="[{'type':'src','desc':'轮播图片01的图片地址,尺寸为1920x586px'}]" src="http://img01.taobaocdn.com/imgextra/i1/397341302/T2SJjPXlNXXXXXXXXX_!!397341302.jpg" style="width: 1900px; height: 586px" /></a></div><!--此处定义幻灯片图片1-->
						<div>
							<a data-attr-replace="[{'type':'href','desc':'轮播图片O2 宝贝页面地址,注意不是图片地址'}]" href="http://semir.mall.taobao.com/view_page-660115763.htm" target="_blank"><img alt="" data-attr-replace="[{'type':'src','desc':'轮播图片02的图片地址,尺寸为1920x586px'}]" src="http://img02.taobaocdn.com/imgextra/i2/397341302/T22RPPXblXXXXXXXXX_!!397341302.jpg" style="width: 1900px; height: 586px" /></a></div><!--此处定义幻灯片图片2-->
					</div>
					<ul class="lst-trigger" style="z-index: 10000; width: 101px; bottom: 22px; left: 910px"><!--此处定义按钮的z轴(z-index)de属性和位置-->
						<li class="current">
							1</li>
						<li>
							2</li>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<p>
	 </p>

 

抱歉!评论已关闭.