解決 IE6 不支持絕對定位 fixed 以及IE6下被絕對定位的元素在滾動的時候會閃動的問題
/* IE6 hack */
*html,*html body {
background-image:url(about:blank);
background-attachment:fixed;
}
*html #menu {
position: absolute;
top: expression(((e=document.documentElement.scrollTop) ? e : document.body.scrollTop) + 100 + 'px');
}
/* IE6 hack */
*html,*html body {
background-image:url(about:blank);
background-attachment:fixed;
}
*html #menu {
position: absolute;
top: expression(((e=document.documentElement.scrollTop) ? e : document.body.scrollTop) + 100 + 'px');
}
2017-02-23
"(\\s|^)" + cls + "(\\s|$)" : \\s 是轉(zhuǎn)義后的\s代表空格,|是或,^表示以cls開始,\\s空格,|或,$表示以cls結(jié)尾
2017-02-20
var top = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
var top = document.documentElement.scrollTop || document.body.scrollTop;
都可以解決問題
var top = document.documentElement.scrollTop || document.body.scrollTop;
都可以解決問題
2017-02-20
最新回答 / 慕粉1106092751
menu.find("[href="+currentId+"]")?前邊兩個引號"[href="是一對,后邊兩個"]"是一對
最新回答 / 慕粉18221508921
//menu.find("[href='#item3']").addClass("current");正常的格式是這樣
zencoding 插件對應(yīng)sublime text的emmet插件,學(xué)習(xí)的點贊!
2017-02-18
最新回答 / 洋蔥_dot
你的代碼,比如#content.item?li?a?img,content和.item之間缺少空格,所以屬性其實是無效的css
不是有g(shù)etElementsByClassName(".item")方法么?為什么這么麻煩,是出于兼容性考慮么?
2017-02-14