成人在色线视频在线观看免费社区,精品乱子伦一区二区三区,偷窥美女洗澡一区二区三区 http://m.166276.com/blog 中山php|最優(yōu)網絡 Mon, 13 May 2013 04:56:43 +0000 en hourly 1 http://wordpress.org/?v=3.1.4 ie6實現(xiàn)div頁面固定不動,純CSS中使用expression兼容fix http://m.166276.com/blog/view-392.html http://m.166276.com/blog/view-392.html#comments Wed, 01 Aug 2012 09:36:33 +0000 lin http://m.166276.com/blog/?p=392 * html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;} * html .fixed-top /* IE6 position fixed Top */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));} * html .fixed-right /* IE6 position fixed right */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));} * html .fixed-bottom /* IE6 position fixed Bottom */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));} * html .fixed-left /* IE6 position fixed Left */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft));} CSS中使用expression有ie才能識別。IE5及其以后版本支持在CSS中使用expression,用來把CSS屬性和 Javascript表達式關聯(lián)起來,這里的CSS屬性可以是元素固有的屬性,也可以是自定義屬性。就是說CSS屬性后面可以是一段Javascript 表達式,CSS屬性的值等于Javascript表達式計算的結果。 在表達式中可以直接引用元素自身的屬性和方法,也可以使用其他瀏覽器對象。這個表達式就好像是在這個元素的一個成員函數(shù)中一樣。

例子: 1.給元素固有屬性賦值 下面是定義container容器的寬度,如果<725就為自己的寬度,否則就等于725,相當于max-width:725px;。   <style type="text/css" media="screen">   #container { width: expression((documentElement.clientWidth > 725) ? "725px" : "auto" ); }   </style>   2.給元素自定義屬性賦值 例如,消除頁面上的鏈接虛線框。 通常的做法是:   <a href="link1.htm" onfocus="this.blur()">link1</a>   <a href="link2.htm" onfocus="this.blur()">link2</a>   <a href="link3.htm" onfocus="this.blur()">link3</a>   粗看或許還體現(xiàn)不出采用expression的優(yōu)勢,但如果你的頁面上有幾十甚至上百個鏈接,這時的你難道還會機械式地Ctrl+C,Ctrl+V么,何況兩者一比較,哪個產生的冗余代碼更多呢?   采用expression的做法如下:   <style type="text/css">   a {star : expression(this.onFocus=this.blur());}   </style>   <a href="link1.htm">link1</a>   <a href="link2.htm">link2</a>   <a href="link3.htm">link3</a>   說明:里面的star就是自己任意定義的屬性,你可以隨自己喜好另外定義,接著包含在expression()里的語句就是JS腳本, 在自定義屬性與expression之間可別忘了還有一個引號,因為實質還是CSS,所以放在style標簽內,而非script內。OK,這樣就很容易 地用一句話實現(xiàn)了頁面中的鏈接虛線框的消除。不過你先別得意,如果觸發(fā)的特效是CSS的屬性變化,那么出來的結果會跟你的本意有差別。例如你想隨鼠標的移 進移出而改變頁面中的文本框顏色更改,你可能想當然的會認為應該寫為   <style type="text/css">   input {star : expression(onmouseover=this.style.backgroundColor="#F5F5F5";   onmouseout=this.style.backgroundColor="#FFFFFF")}   </style>   <input type="text">   <input type="text">   <input type="text">   可結果卻是出現(xiàn)腳本出錯,正確的寫法應該把CSS樣式的定義寫進函數(shù)內,如下所示:   <style type="text/css">   input {star : expression(onmouseover=function()   {this.style.backgroundColor="#FF0000"},   onmouseout=function(){this.style.backgroundColor="#FFFFFF"}) }   </style>   <input type="text">   <input type="text">   <input type="text">   注意:不是非常需要,一般不建議使用expression,因為expression對瀏覽器資源要求比較高。


]]>
http://m.166276.com/blog/view-392.html/feed 437
中文字幕第一页| 女人荫部100张图片| 白天躁晚上躁天天躁2022| 刑警娇妻穿着乳环被调教| 白洁少妇全文无删减在线阅读| 少妇被粗大的猛烈进出69影院一| 国语精彩对白在线视频| python人马| C了瑜伽老师一节课网站| 新狼窝色av性久久久久久| 蜜桃传媒一区二区亚洲av婷婷| 欧美又黄又嫩大片a级澳门| 中文无码精品一区二区三区| 口述他进我身体全过程| 香港特级三a毛片免费观看| 日产日产自线一二三四2021| 娇小萝被两个黑人用半米长| 国产精品久久久久aaaa| 中文人妻av久久人妻水| 白白嫩嫩又小又紧| 99久久久无码国产精品| 中文字幕在线观看| 少妇bbwbbw性生话| 中老年妇女加肥加大女上衣| 日本妇人成熟a片免费现看| 娇妻第一次尝试交换| 国产日产人妻精品精品| 无遮挡1000部拍拍拍免费| 老头在厨房添下面很舒服| 露娜拿的金箍棒玩自己视频| 岳两片蚌肉缓缓张开| 老板我好爽快点使劲要我| 岳的大肥坹毛茸茸| 香港三日本8a三级少妇三级99| 中国videos露脸hd麻豆| 啊用点力对就是那里视频| 精品久久久久久亚洲中文字幕| 9lporm自拍视频区九色| 人妻精品久久久久中文字幕| 公与淑婷厨房猛烈进出| 无码A级毛片免费视频内谢5J|