border必须有样式

只有宽度不行,必须有样式,颜色也只在有样式的前提下起作用

border:1px/1pt/1cm/1em/thick/medium(默认值)/thin  solid/dotted/double/dashed   colorname/rgba/Hex(十六进制值)

border-top-style:dotted

border:none表示边框样式无

原文地址:https://www.cnblogs.com/zawjdbb/p/6622710.html