在附加 CSS 属性 之前加一个点的目的是什么?
What is the purpose of a dot before an additional CSS property?
这是我在代码中的内容:
min-height: 35px;
.min-height: 25px;
}
第二行是做什么的?我假设它用于跨浏览器样式目的,但不确定是哪个。
我猜它的目标是 IL 6 和 7,尽管通常使用 _
或 -
。
Due to a parsing error, Internet Explorer 6 and below wouldn't fail on
properties that were prefixed with non-alphanumeric characters.
和
Although Internet Explorer 7 corrected its behavior when a property
name is prefixed with an underscore or a hyphen, other
non-alphanumeric character prefixes are treated as they were in IE6.
Therefore, if you add a non-alphanumeric character such as an asterisk
(*) immediately before a property name, the property will be applied
in IE and not in other browsers.
http://www.webdevout.net/css-hacks#unrecommended-vendor_prefix
这是我在代码中的内容:
min-height: 35px;
.min-height: 25px;
}
第二行是做什么的?我假设它用于跨浏览器样式目的,但不确定是哪个。
我猜它的目标是 IL 6 和 7,尽管通常使用 _
或 -
。
Due to a parsing error, Internet Explorer 6 and below wouldn't fail on properties that were prefixed with non-alphanumeric characters.
和
Although Internet Explorer 7 corrected its behavior when a property name is prefixed with an underscore or a hyphen, other non-alphanumeric character prefixes are treated as they were in IE6. Therefore, if you add a non-alphanumeric character such as an asterisk (*) immediately before a property name, the property will be applied in IE and not in other browsers.
http://www.webdevout.net/css-hacks#unrecommended-vendor_prefix