小白老師我有問題想問你...我已將問題寄到你的msn
latest #18
想請問您因為ie 和 firefox 單位計算不同...請問我可以透過css寫兩種單位...來使用嗎1.針對ie 2.針對firefox
可以,但要使用 Crack,不建議寫在同一支CSS內。
#image{margin:0 0 0 10px;/* Moz */}
#image{margin:0;/* IE */}
<!--[if IE]><link href="/path/ieCrack.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
如果要針對IE版本,可在後加上另一行。<!--[if IE 6]><link href="/path/css/ie6Crack.css" rel="stylesheet" type="text/css" media="all" /><![endif]-->
如果真對IE版本,就寫在 ieXCrack.css內
back to top