舊專案常需用 CSS hack 區分瀏覽器。以 height 為例:
height: 73px; /* 一般瀏覽器 */ [;height: 50px;] /* 舊 Chrome */ -moz-height: 73px; /* Firefox */ _height: 73px; /* IE6 */ *height: 73px; /* IE7 */ height: 73px9; /* IE8 */
這類寫法只適合維護歷史專案,新專案應優先使用標準屬性與 feature detection。