gpt4 book ai didi

以 * 开头的 CSS 语句

转载 作者:行者123 更新时间:2023-12-02 12:10:50 26 4
gpt4 key购买 nike

我已经从 HTML5Reset 下载了 css 文件,用作 CSS 的入门集。查看代码,我发现有些语句以 * 开头,例如。 *垂直对齐。我以前从未遇到过这个。这是什么意思?

最佳答案

这是一个黑客行为。

Versions 7 and below of Internet Explorer recognize properties which are preceded by non-alphanumeric characters except an underscore or a hyphen (after discarding the prefix). All other browsers ignore such properties as invalid. Therefore, a property that is preceded by an non-alphanumeric character other than an underscore or a hyphen, such as an asterisk, is applied exclusively in Internet Explorer 7 and below.

http://en.wikipedia.org/wiki/CSS_filter#Star_hack

关于以 * 开头的 CSS 语句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16632660/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com