CSS还有# hack

下面截取了dojo的ui组件样式的一段inline-box代码,在dojo中经常会看到 #属性名 的css hack,这个hack我测试过在IE6/7/8生效,火狐3,safari不生效,chrome!这种#的写法比较少见,网上讨论好像也很少!
.dijitInline {
	/*  To inline block elements.
		Similar to InlineBox below, but this has fewer side-effects in Moz.
		Also, apparently works on a DIV as well as a FIELDSET.
	*/
	display:inline-block;			/* webkit and FF3 */
	#zoom: 1; /* set hasLayout:true to mimic inline-block */
	#display:inline; /* don't use .dj_ie since that increases the priority */
	border:0;
	padding:0;
	vertical-align:middle;
	#vertical-align: auto;	/* makes TextBox,Button line up w/native counterparts on IE6 */
}

你可能感兴趣的:(css,IE,#,hack,井号)