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

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

為什么沒有自動播放這個效果出現(xiàn)呢?

<!DOCTYPE?html>
<html>
	<head>
		<meta?charset="UTF-8">
		<title>圖片燈箱--lightBox</title>
		<script?src="js/jquery-1.11.3.min.js"></script>
		<script?type="text/javascript"?src="http://idcbgp.cn/data/jquery.notesforlightbox.js"></script>
		<link?rel="stylesheet"?type="text/css"?href="http://idcbgp.cn/data/jquery.notesforlightbox.css"?/>
		<link?rel="stylesheet"?href="css/lightBox.css"?/>
	</head>
	<body>
		<div?id="divtest">
			<div?class="title">
				<span?class="fl">我的相冊</span>
			</div>
			<div?class="content">
				<div?class="divPics">
					<ul>
						<li><a?href="images/Hydrangeas.jpg"?title="第一頁圖片">
							<img?src="images/Hydrangeas.jpg"?/>
						</a></li>
						<li><a?href="images/Jellyfish.jpg"?title="第二頁">
							<img?src="images/Jellyfish.jpg"?/>
						</a></li>
						<li><a?href="images/Koala.jpg"?title="第三頁">
							<img?src="images/Koala.jpg"?/>
						</a></li>
						
					</ul>
				</div>
			</div>
		</div>
	</body>
</html>
<script>
	$(function(){
		$(".divPics?a").lightBox({
			overlayBgColor:"pink",//圖片瀏覽時的背景色
			overlayOpacity:0.4,//背景色的透明度
			containerResizeSpeed:300//圖片切換時的速度
		});
	});
</script>


正在回答

4 回答

? ? ? ? <link rel="stylesheet" type="text/css" href="http://idcbgp.cn/data/jquery.notesforlightbox.css" />

? ? ? ? <script type="text/javascript" src="http://idcbgp.cn/data/jquery-1.8.2.min.js"></script>

? ? ? ? <script type="text/javascript" src="http://idcbgp.cn/data/jquery.notesforlightbox.js"></script>

用這3個庫試一下,我這邊可以

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

$(".divPics a").lightBox({

加上這行代碼也不行

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

我的不能自動播放怎么回事 求指教

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

? ? <head>

? ? ? ? <title>圖片燈箱插件</title>

? ? ? ? <link rel="stylesheet" type="text/css" href="http://idcbgp.cn/data/jquery.notesforlightbox.css" />

? ? ? ? <link href="style.css" rel="stylesheet" type="text/css" />

? ? ? ? <script type="text/javascript" src="http://idcbgp.cn/data/jquery-1.8.2.min.js"></script>

? ? ? ? <script type="text/javascript" src="http://idcbgp.cn/data/jquery.notesforlightbox.js"></script>

? ? </head>

? ??

? ? <body>

? ? ? ? <div id="divtest">

? ? ? ? ? ? <div class="title">

? ? ? ? ? ? ? ? <span class="fl">我的相冊</span>

? ? ? ? ? ? </div>

? ? ? ? ? ? <div class="content">

? ? ? ? ? ? ? ? <div class="divPics">

? ? ? ? ? ? ? ? ? ? <ul>

? ? ? ? ? ? ? ? ? ? ? ? <li><a title="第1篇風(fēng)景圖片">

? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="http://img1.sycdn.imooc.com//52e489f20001ecfc04480275.jpg" alt="" />

? ? ? ? ? ? ? ? ? ? ? ? </a></li>

? ? ? ? ? ? ? ? ? ? ? ? <li><a title="第2篇風(fēng)景圖片">

? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="http://img1.sycdn.imooc.com//52e48a1e0001eec804480275.jpg" alt="" />

? ? ? ? ? ? ? ? ? ? ? ? </a></li>

? ? ? ? ? ? ? ? ? ? ? ? <li><a title="第3篇風(fēng)景圖片">

? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="http://img1.sycdn.imooc.com//52e48a4c00015ad204480275.jpg" alt="" />

? ? ? ? ? ? ? ? ? ? ? ? </a></li>

? ? ? ? ? ? ? ? ? ? </ul>

? ? ? ? ? ? ? ? </div>

? ? ? ? ? ? </div>

? ? ? ? </div>

? ? ? ??

? ? ? ? <script type="text/javascript">

? ? ? ? ? ? $(function () {

? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? ? ? overlayBgColor: "#666", //圖片瀏覽時的背景色

? ? ? ? ? ? ? ? ? ? overlayOpacity: 0.5, //背景色的透明度

? ? ? ? ? ? ? ? ? ? containerResizeSpeed: 600 //圖片切換時的速度

? ? ? ? ? ? ? ? })

? ? ? ? ? ? });

? ? ? ? </script>

? ? </body>

</html>

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

jq版本換成1.8.2就可以,寫成1.11.3為什么就不行呢


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

舉報

0/150
提交
取消
jQuery基礎(chǔ)(五)一Ajax應(yīng)用與常用插件
  • 參與學(xué)習(xí)       69100    人
  • 解答問題       416    個

如何用jquery實(shí)現(xiàn)ajax應(yīng)用,加入學(xué)習(xí),有效提高前端開發(fā)速度

進(jìn)入課程

為什么沒有自動播放這個效果出現(xiàn)呢?

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

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

幫助反饋 APP下載

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

公眾號

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