最新回答 / qq_Say_3
看了之前的問(wèn)題,才知道了是這個(gè)原因。就是咋火狐瀏覽器可識(shí)別var top = document.documentElement ? document.documentElement.scrollTop : document.body.scrollTop;谷歌就不行咩。改成下邊就好了var top = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
2016-10-21
最新回答 / 小威_0004
你快進(jìn)了或者是你跳著看的,導(dǎo)致系統(tǒng)認(rèn)為你還未學(xué)習(xí)完成。解決方案:重新看一遍,不要快進(jìn)或者跳轉(zhuǎn)到指定時(shí)間節(jié)點(diǎn)
2016-10-20
已采納回答 / qq_Say_3
var elements=obj.getElementsByTagName("*");得到obj下的所有的標(biāo)簽,存在elements數(shù)組中。接著只要判斷這些標(biāo)簽中的名字和要找的cls相同就行。相同的話,添加到數(shù)組result中。result就是要找的obj中的類。
2016-10-20
最新回答 / 田紫
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script><script> $(document).ready(function(){ //滾動(dòng)條發(fā)生滾動(dòng) $(window).scroll(function(){ var top=$(document).scrollTop(); var menu=$("#menu"); var items=$("#contant")....
每次聽(tīng)這個(gè)老師的課都得找耳機(jī),這老師聲音真溫柔。
2016-10-18
/*請(qǐng)補(bǔ)充此處代碼,讓導(dǎo)航菜單在左側(cè)絕對(duì)定位顯示*/
#menu{
position:fixed;
#menu{
position:fixed;
2016-10-18
/*請(qǐng)補(bǔ)充此處代碼,讓右側(cè)廣告正確顯示*/
#content .item{
width: 100%;
height: 540px;
position: relative;
left:200px;
}
#content .item{
width: 100%;
height: 540px;
position: relative;
left:200px;
}
2016-10-18
最新回答 / Resen4983
你可以試一試在一個(gè)class的name前面加一個(gè)空格,然后看看樣式設(shè)置是否有效就能判斷了<...code...>上面這樣才能讓這兩個(gè)樣式生效,為一個(gè)標(biāo)簽添加兩個(gè)className時(shí)中間需要一個(gè)空格.
2016-10-18
已采納回答 / qq_夢(mèng)在起航_0
WebStorm