我知道如何创建边框,如何用不同的颜色填充边框内的其余部分?这是我到目前为止所拥有的:
<div style="width:200px;height:100px;border:6px outset orange;">text</div>
最佳答案
使用
background:#fff
或任何颜色; 还有一个建议永远不要使用内联 css 以获得最佳输出使用外部 CSS
<div id="something">text</div>
#something
{
width:200px;
height:100px;
//likewise
}
关于html - 如何在 HTML 中填充边框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11911956/