我正在使用边框凹槽,但我需要编辑第二种颜色。
border-right: 2px groove #FFFFFF;
border-top: 2px groove #FFFFFF;
最佳答案
您需要一些 CSS 技巧来制作类似 groove
的样式,请参见:http://jsfiddle.net/LbH92/9/
HTML:
<div class="border">
Hi I have two border colors<br />I am also Fluid
</div>
CSS:
div.border{
border-right:2px solid #ffffff;
border-top:2px solid #cccccc;
position:relative;
}
div.border:before{
position:absolute;
display:block;
content:'';
border-right:2px solid #cccccc;
border-top:2px solid #ffffff;
height:100%;
width:100%;
box-sizing: border-box;
-moz-box-sizing:
border-box; -webkit-box-sizing:
border-box;
}
希望能解决问题!
关于html - 更改边框凹槽第二种颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20286672/