为什么不换颜色啊
css吧
全部回复
仅看楼主
level 3
发电鼠 楼主


2023年12月07日 10点12分 1
level 7
你没注意到你写的是啥吗?
- style属性只能有一个
- style属性里可以写多条CSS
- class不是用来写CSS的
2023年12月07日 23点12分 2
level 10
style="xxxx:yyyy;aaaa:bbbb;cccc:dddd"这样。
class类名,,
div class="leftbox"
<style>
.leftbox{width:100px;height:100px;}
<style>
等同于:
div style="width:100px;height:100px;"
/div
2024年01月08日 00点01分 3
level 1
首先行内样式重复了,其次class是声明样式类名
2024年02月27日 07点02分 4
1