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

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

jquery動(dòng)畫篇1-3, #a1設(shè)置display: none !important,然后再 $("#a1").css('display', 'block !important'); $("#a1").show(3000); }); 為什么動(dòng)畫不能顯示

<!DOCTYPE html>

<html>


<head>

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

? ? <title></title>

? ? <style>

? ? .left div,

? ? .right div {

? ? ? ? width: 500px;

? ? ? ? height: 50px;

? ? ? ? padding: 5px;

? ? ? ? margin: 5px;

? ? ? ? float: left;

? ? ? ? border: 1px solid #ccc;

? ? ? ?

? ? }

? ??

? ? .left div {

? ? ? ? background: #bbffaa;

? ? }

? ??

? ? .right div {

? ? ? ? background: yellow;

? ? }

? ??

? ? #a1{display:none !important;}

? ? </style>

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

</head>


<body>

? ? <h2>hide-show</h2>

? ? <div class="left">

? ??

? ? ? ? <div id="a1">hide-show</div>


? ? ? ? <button>直接hide-show動(dòng)畫</button>


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


? ? //點(diǎn)擊button

? ? //執(zhí)行3秒隱藏

? ? //執(zhí)行3秒顯示

? ? $("button").click(function() {

? ? ? ? $("#a1").css('display', 'block !important');

? ? ? ? $("#a1").show(3000);

? ? });


? ? </script>

</body>


</html>


正在回答

6 回答

http改成https

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

?加了這個(gè)!important,show方法就不能把display來(lái)回切換了 ?需要你自己顯示 然后show方法提供動(dòng)畫 從 width=0和height=0變會(huì)原來(lái)值,就是說(shuō) 你需要自己用disoaly:block !important顯示出來(lái) ?但是 顯示出來(lái)了 盒子寬高還是0 ,需要繼續(xù)動(dòng)畫變會(huì)原來(lái)的值。

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

這個(gè)問(wèn)題挺無(wú)解的,教程方法二肯定錯(cuò)的,我用attr('style','display:block !important')雖然樣式可以切換了,但沒(méi)有動(dòng)畫效果了,show()加不加,動(dòng)畫效果都一樣

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

<!DOCTYPE html>
<html>

<head>
??? <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
??? <title></title>
??? <style>
??? .left div,
??? .right div {
??????? width: 500px;
??????? height: 50px;
??????? padding: 5px;
??????? margin: 5px;
??????? float: left;
??????? border: 1px solid #ccc;
??? }
???
??? .left div {
??????? background: #bbffaa;
??? }
???
??? .right div {
??????? background: yellow;
??? }
??? #ai {
??????? display:none!important;
??? }
??? </style>
??? <script src="http://libs.baidu.com/jquery/1.9.1/jquery.js"></script>
</head>

<body>
??? <h2>hide-show</h2>
??? <div class="left">
???
??????? <div id="a1">hide-show</div>

??????? <button>直接hide-show動(dòng)畫</button>

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

??? //點(diǎn)擊button
??? //執(zhí)行3秒隱藏
??? //執(zhí)行3秒顯示
?/*?? $("button").click(function() {
??????? var flag=1;
??????? while(flag=2)
??????? {
???????????? $("#a1").hide(3000).show(3000)
??????? }
??????
??? });*/
??? $('#a1').on('mousedown mouseclick',function(){
?????? $('#a1').css('display', 'block !important');
??????? $("#a1").hide(3000).show(3000)
??? })

??? </script>
</body>

</html>


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

旋律丶秋涼

自己寫的代碼調(diào)試過(guò)沒(méi)有,什么亂七八糟的
2017-05-31 回復(fù) 有任何疑惑可以回復(fù)我~
#2

JoKer49 回復(fù) 旋律丶秋涼

有沒(méi)有教養(yǎng) 不會(huì)說(shuō)人話?
2017-08-30 回復(fù) 有任何疑惑可以回復(fù)我~
#3

JoKer49 回復(fù) 旋律丶秋涼

什么玩意啊你 不會(huì)看了代碼再說(shuō)話?
2017-08-30 回復(fù) 有任何疑惑可以回復(fù)我~
#4

旋律丶秋涼 回復(fù) JoKer49

我說(shuō)就你這水平還來(lái)寫代碼?自己寫的代碼調(diào)過(guò)了沒(méi)有就敢發(fā)出來(lái)?!important提升了display:none的優(yōu)先級(jí),再用show能顯示?就這水平還來(lái)回答問(wèn)題?
2017-08-31 回復(fù) 有任何疑惑可以回復(fù)我~
查看1條回復(fù)

if ( display === true ) {
?$( "elem" ).show();
} else if ( display === false ) {
?$( "elem" ).hide();
}

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

淡水狗

代碼沒(méi)反應(yīng)
2017-07-19 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

jquery動(dòng)畫篇1-3, #a1設(shè)置display: none !important,然后再 $("#a1").css('display', 'block !important'); $("#a1").show(3000); }); 為什么動(dòng)畫不能顯示

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

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

幫助反饋 APP下載

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

公眾號(hào)

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