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

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

怎么沒有反應(yīng)

都寫了,但是沒有反應(yīng),求大神看看

<!DOCTYPE html>

<html>


<head>

? ? <meta http-equiv="Content-type" content="text/html; charset=utf-8" />

? ? <title></title>

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

? ? <script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>

</head>


<body>

? ? <h2>可見性篩選選擇器</h2>

? ? <h3>:visible/:hidden</h3>

? ? <div class="left">

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

? ? ? ? ? ? <a>display</a>

? ? ? ? ? ? <p id="div1" style="display:none;">display</p>

? ? ? ? </div>

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

? ? ? ? ? ? <a>width</a>

? ? ? ? ? ? <a>height</a>

? ? ? ? ? ? <p id="div2" style="width:0;height:0">width/height</p>

? ? ? ? </div>

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

? ? ? ? ? ? <a>visibility</a>

? ? ? ? ? ? <a>opacity</a>

? ? ? ? ? ? <p id="div3" style="visibility:hidden;opacity:0">visibility</p>

? ? ? ? </div>

? ? </div>


? ? <p id="show"></p>

<script type="text/javascript">

function show (ele) {

if (ele instanceof jQuery) {

$("#show").html('元素的長(zhǎng)度的 = ' + ele.length)

} else {

alert(ele+' 不是jQuery對(duì)象')

}

}

</script>



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

? ? //查找id = div1的DOM元素,是否可見

? ? show( $("#div1:visible") );

? ? </script>


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

? ? //查找id = div2的DOM元素,是否可見

? ? show( $("#div2:visible") );

? ? </script>


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

? ? //查找id = div3的DOM元素,是否可見

? ? show( $("#div3:visible") );

? ? </script>


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

? ? //查找id = div1的DOM元素,是否隱藏

? ? show( $("#div1:hidden") );

? ? </script>


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

? ? //查找id = div2的DOM元素,是否隱藏

? ? show( $("#div2:hidden") );

? ? </script>


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

? ? //查找id = div3的DOM元素,是否隱藏

? ? show( $("#div3:hidden") );

? ? </script>




</body>


</html>


正在回答

2 回答

https://img1.sycdn.imooc.com//5c21f47c0001c4a504550026.jpg

加個(gè)s

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

jquery引入改為:<script src="http://idcbgp.cn/static/lib/jquery/1.9.1/jquery.js"></script>

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

舉報(bào)

0/150
提交
取消

怎么沒有反應(yīng)

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

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

幫助反饋 APP下載

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

公眾號(hào)

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