Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css world 3.3.3 1. 超越!important #23

Open
jiaqiu-09 opened this issue Apr 7, 2022 · 1 comment
Open

css world 3.3.3 1. 超越!important #23

jiaqiu-09 opened this issue Apr 7, 2022 · 1 comment
Labels
CSS世界 CSS世界这本书中的问题 疑问解答 书中解释的内容有不理解的地方,或者怀疑作者说得不对

Comments

@jiaqiu-09
Copy link

作者你好,
对于 https://demo.cssworld.cn/3/3-1.php
max-width 会覆盖 !important,修改 img{max-width: 500px}后, 实际的结论显示会取较小值,对于这个你怎么看?

@zhangxinxu zhangxinxu added CSS世界 CSS世界这本书中的问题 疑问解答 书中解释的内容有不理解的地方,或者怀疑作者说得不对 labels May 13, 2022
@zhangxinxu
Copy link
Owner

这里覆盖指的是尺寸计算冲突时候的优先级,并不是相同属性的那种覆盖。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS世界 CSS世界这本书中的问题 疑问解答 书中解释的内容有不理解的地方,或者怀疑作者说得不对
Projects
None yet
Development

No branches or pull requests

2 participants