【发布时间】:2015-02-17 22:38:32
【问题描述】:
为什么没有应用边框宽度 css 不起作用?
下面是我的代码:
CSS:
{
border-style:solid;
border-width:10px;
}
【问题讨论】:
标签: html css stylesheet
为什么没有应用边框宽度 css 不起作用?
下面是我的代码:
CSS:
{
border-style:solid;
border-width:10px;
}
【问题讨论】:
标签: html css stylesheet
尝试使用适当的<style></style> 属性嵌入头部。
<!DOCTYPE html>
<html>
<head>
<style>
p.one {
border-style: solid;
border-width: 5px;
}
</style>
</head>
<body>
<p class="one">Some text.</p>
<p><b>Note:</b> The "border-width" property does not work if it is used alone. Use the "border-style" property to set the borders first.</p>
</body>
</html>
【讨论】: