IE6不支援設定transparent為邊框的顏色。例如:border:solid 1px transparent; 解決方案:border:solid 1px transparent;/*set an unused color to be index color*/_border-color:tomato; /*For IE6-*//*then remove this indexed color*/_filter:chroma(color=tomato);/*For IE6-*/結果如下:
代碼如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN"><head><title>
有時候,我們用CSS建立一個高度調適型配置,如何保證頁尾(footer)在內容不超過一屏的情況下始終保持在布局最下方是一個比較頭疼的事。我看過一些利用絕對位置的例子,但總感覺不是那麼完美,經過一下午的研究總結出一個利用負值外補丁的方法來實現這個效果的方法,相容IE5.0+,Opera 8.5+,Firefox 1.5+。下面我們看步驟: 1、為了讓瀏覽器識別高度100%我們需要先給 html 和 body 加上一個高度值,同時清除所有元素的 margin 和
1<link rel="stylesheet" type="text/css" media="handheld" href="css/handheld.css" />2<link rel="stylesheet" type="text/css" media="Screen" href="css/master.css" />This method works for me. Good handhelds and phones will recognize
Two Column FlexibleBrowsers: ' ' ' ' (5+) Description: Probably the easiest page to make. Contains two layout divs, the main content div is just floated to the left. Very simple! Actions: View | Image Preview | Download [ 5k] [ZIP] Two Column
這幾天都在學習css,由於以前接觸的比較少,只是會簡單得運用,所以學習起來有點困難,特別在布局方面,雖然網上好多例子,但是到現在我對布局還沒有系統的掌握。 布局通過position屬性進行的,它有以下幾種取值: static 預設值。無特殊定位,對象遵循HTML定位規則 absolute 將對象從文檔流中拖出,使用 left , right , top , bottom 等屬性相對於其最接近的一個最有定位設定的父物件進行絕對位置。如果不存在這樣的父物件,則依據 body