摘要:
class 选择器 <style> .class{ } </style> 多class属性 当一个标签有两个class 时,后class的属性中相同的属性会覆盖前面class的属性 <style> body { background-color: black; font-family: monosp 阅读全文
posted @ 2020-09-13 17:21
JunCode
阅读(607)
评论(0)
推荐(0)
摘要:
颜色 颜色表示方法: 英文:red rgb表示法:rgb(255, 0, 0) 16进制表示法:#FF0000 16进制缩写法:#F00 每一位分别表示红绿蓝 rgba:g代表green 颜色属性 color:字体颜色 background-color:背景颜色 字体 font-family:字体格 阅读全文
posted @ 2020-09-13 16:57
JunCode
阅读(226)
评论(0)
推荐(0)
摘要:
通过标签选择 <stype> h1{ } </style> 通过id选择 <stype> #id{ } </style> 通过class选择 <stype> .class{ } </style> 通过[attr='value']选择 <stype> [attr='value']{ } </style 阅读全文
posted @ 2020-09-13 16:23
JunCode
阅读(122)
评论(0)
推荐(0)
摘要:
三个重要的属性控制围绕每个HTML元素的空间:padding,border,和margin。 <style> .injected-text { margin-bottom: -25px; text-align: center; } .box { border-style: solid; border 阅读全文
posted @ 2020-09-13 15:35
JunCode
阅读(902)
评论(0)
推荐(0)

浙公网安备 33010602011771号