简单的问题完全透明边框
目标:做一个边框(左,右)完全透明的,所以身体的背景颜色可以识破。
<html>
<body>
<div id="wrap">
<div class="trap">
Make the white borders transparent, so when I change the background color the background color will be seen through the borders.
I've tried rgb() with opacity but no luck
</div>
<div class="trap2">
This is what I'd like but I'm setting the border = bg color;
</div>
</div>
</body>
</html>
CSS
body {background:#eee;}
#wrap {padding:50px;}
.trap {
width:350px;
background: rgb(238, 238, 238);
border-right: 30px solid transparent;
border-left: 30px solid transparent;
border-bottom: 30px solid rgb(216, 199, 143);
}
.trap2 {
width:350px;
margin-top:100px;
background: rgb(238, 238, 238);
border-right: 30px solid #fff;
border-left: 30px solid #fff;
border-bottom: 30px solid rgb(216, 199, 143);
}
我已经尝试了许多变通办法都无济于事我的具体问题。
你的包里还有什么窍门?
你确定你不只是想要利润? – zzzzBov 2013-02-13 22:41:52
他想要有像梯形一样的底部边框,顺便说一句。它适用于我的Chrome – pwolaq 2013-02-13 22:44:27