9
八月
2008

IE7 CSS 高度設置問題

開發專案過程中,遇到IE7頁面過長的內容會超過版面高度的設置
找到轉自梧桐工作室以下資料可以解決高度設置的問題

設置範例

.distance { 
height:auto!important; 
height:100px; 
min-height:100px; 
}


!import(優先) 標籤IE6並不支援,所以IE6看到的是

height:100px; 
min-height:100px;

而IE7看到的則是

height:auto; 
min-height:100px;

我們可利用的特性是

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

仍無迴響。

發表迴響

(必)

(必)