Re: [問題] CSS Firefox可以看 IE不行

看板Web_Design作者時間18年前 (2007/10/17 23:48), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《Seawoods (無言)》之銘言: : as title : http://www.cssplay.co.uk/menu/clip_gallery.html#nogo : It also shows that IE6 gets it wrong with its clip style. If you use comma : separators as per the specification then the clip doesn't work. But if you : use space separators as is normal for padding, margin and borders then IE6 : gets it right. Firefox doesn't mind either way. : 請問上面那段是在說什麼 看不懂... 翻譯一下~ 這也顯示了IE6使用置入(clip)時會出錯, 用逗號來分隔每個數值的設定的話會行不通, 但如果你用一般的空白分隔,就像邊界、留白和邊框設定那樣, IE6就會顯示正常。Firefox則是兩種方式都吃。 意思是說~clip這個屬性, 可以寫成#clipDiv{clip:rect(num,num,num,num);} (很多書跟網路上都降寫喔) 但是在IE6會出錯, 所以要像{margin:num num num num}寫成(num num num num) (p.s.沒有margin:num,num,num)的寫法喔) -- 我是printscreen控 http://picasaweb.google.com/macsoho/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.71.192.161

10/18 03:13, , 1F
喔喔 原來如此 謝謝
10/18 03:13, 1F
文章代碼(AID): #175Yww_M (Web_Design)
文章代碼(AID): #175Yww_M (Web_Design)