第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

我的橫向滾動(dòng)代碼提供給大家

<html>
<head>
	<meta?charset="utf-8"?/>
	<title>左右走馬燈</title>
	<style?type="text/css">
		*?{?margin:?0;?padding:?0;?border:?0;?}
		ul?{?list-style:?none;?}
		li?{?float:?left;?font-size:?12px;?font-weight:?700;?height:?28px;?display:?inline-block;?line-height:?28px;?}
		#wrap?{?width:?100%;?margin:?0?auto;?padding:?10px?0;?background-color:?rgba(0,0,0,0.2);?overflow:?hidden;?}
		#head?{?width:?100%;?text-align:?center;?}
		#head?span?{?font-size:?20px;?font-family:?Microsoft?Yahei;?font-weight:?700;?}
		#body?{?width:?900px;?height:?28px;?overflow:?hidden;?margin:?0?auto;?}
		#content?{?width:?2400px;?}
		#list1?{?float:?left;?background-color:?rgba(0,0,0,0.2);?}
		#list2?{?float:?left;?background-color:?rgba(0,0,0,0.4);?}
	</style>
</head>
<body>
	<div?id="wrap">
		<div?id="head"><span>向左滾動(dòng)樣式</span></div>
		<div?id="body">
			<div?id="content">
				<div?id="list1">
					<ul>
						<li>1.橫向加長版滾動(dòng)信息</li>
						<li>2.橫向加長版滾動(dòng)信息</li>
						<li>3.橫向加長版滾動(dòng)信息</li>
						<li>4.橫向加長版滾動(dòng)信息</li>
						<li>5.橫向加長版滾動(dòng)信息</li>
						<li>6.橫向加長版滾動(dòng)信息</li>
						<li>7.橫向加長版滾動(dòng)信息</li>
						<li>8.橫向加長版滾動(dòng)信息</li>
						<li>9.橫向加長版滾動(dòng)信息</li>
					</ul>
				</div>
				<div?id="list2"></div>
			</div>
		</div>
	</div>

	<script?type="text/javascript">
		var?area?=?document.getElementById('body');
		var?list1?=?document.getElementById('list1');
		var?list2?=?document.getElementById('list2');
		var?speed?=?10;
		area.scrollLeft?=?0;
		list2.innerHTML?=?list1.innerHTML;
		function?scrollUp()?{
			if(area.scrollLeft?>=?list1.scrollWidth)?{
				area.scrollLeft?=?0;
			}?else?{
				area.scrollLeft?++;
			}
		}
		var?myScroll?=?setInterval("scrollUp()",?speed);
		area.onmouseover?=?function()?{
			clearInterval(myScroll);
		}
		area.onmouseout?=?function()?{
			myScroll?=?setInterval("scrollUp()",?speed);
		}
	</script>
</body>
</html>


正在回答

2 回答

這里的#content寬度設(shè)置成2400px是為了能讓兩個(gè)#list橫向放著

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
信息滾動(dòng)效果制作
  • 參與學(xué)習(xí)       47740    人
  • 解答問題       333    個(gè)

萌妹子帶您快速學(xué)習(xí)滾動(dòng)效果,掌握無縫滾動(dòng)和歇間性滾動(dòng)的制作方法

進(jìn)入課程

我的橫向滾動(dòng)代碼提供給大家

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)