IE7 CSS Hack

換了新佈景,但對於CSS的position,Firefox和IE7仍有不同看法。(IE 6沒測試)所以找了IE 7 CSS Hack的方式。

/* 全部都有用 */
#h1{position: absolute; top: 0.15em;}  
 
/* Firefox 吃*/
html>body #h1{ top: 0.25em;} 
 
/* IE7 吃*/
*+html>body #h1{top: 0.34em;} 
 
 /* IE6 and 7 都吃*/
#h1{*top: 0.34em;}
 
/* IE6 吃*/
#h1{_top: 0.34em;}  

如果有很多IE7專用的CSS,不妨就另寫一個css檔案,然後在網頁加入這樣的原始碼。

<!--[if IE 7]>
<link 連結外部CSS語法>
<![Endif]-->

回應

Buildings are expensive and not everybody can buy it. However, loan was created to support different people in such cases.

OVjnUg chgbhgoeiqsn, [url=http://reapqvrmulzz.com/]reapqvrmulzz[/url], [link=http://xarnkzkfhavb.com/]xarnkzkfhavb[/link], http://bkdbedkcxrsu.com/

buy zolpidem tartrate with mastercard - purchase online no prescription generic ambien

xanax online no rx - order xanax online cheap

purchase klonopin - klonopin online order

overnight delivery buy ambien online - purchase ambien cost

xanax online no prescription vancouver - buy cheap xanax no prescription

klonopin online no prescription per pill - klonopin online prescription per pill

alprazolam online - buy xanax inexpensive

buy ambien no script - buy generic ambien

發表新回應

這個欄位的內容會保密,不會公開顯示。
  • 自動將網址與電子郵件位址轉變為連結。
  • 可使用的 HTML 標籤:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自動斷行和分段。

更多關於格式選項的資訊