行内优先级和行外的!important优先级

来源:3-37 选择练习

qq_慕仰20210716

2021-07-24 11:12:11

行内样式的优先级>内部样式的优先级,但是行外的优先级!important比行内还高吗老师


写回答

1回答

好帮手慕星星

2021-07-24

同学你好,是的,行内样式的优先级>内部样式的优先级,行外的!important优先级比行内高。例如

显示行内样式绿色

http://img.mukewang.com/climg/60fb8a9609c07ab504970249.jpg

http://img.mukewang.com/climg/60fb8aff0995031401170052.jpg

显示!important样式

http://img.mukewang.com/climg/60fb8ada0982c5fc05650256.jpg

http://img.mukewang.com/climg/60fb8b09097b904601170048.jpg

自己测试下,祝学习愉快!

1

0 学习 · 17877 问题

查看课程