CSS属性边框颜色不起作用
我的边框颜色有问题。没用 我是CSS新手,
<div id="box">Hello! The color of box border should be red!!
</div>
#box {
border-color: red;
}
回答:
默认情况下,border-widthis 0和border-styleisnone
因此,您需要将它们设置为border-width:1px和border-style:solid。您可以将所有边框属性组合为一个,如下所示:
#box { border:1px solid red
}
以上是 CSS属性边框颜色不起作用 的全部内容, 来源链接: utcz.com/qa/429723.html

