0
我有這個盒子中的箭頭如何在div之前的箭頭中添加邊框?
#div1 {
position: fixed;
width: 140px;
min-height: 100px;
max-height: 400px;
background: #fff;
color: #000;
border: 1px solid #ccc;
//border-top:none;
z-index: 3000;
}
#div1:before {
content: "";
vertical-align: middle;
margin: auto;
position: absolute;
left: 0;
right: 0;
bottom: 100%;
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid #fff;
}
<div id=div1></div>
我想箭頭具有相同的邊框爲#div1
(1px solid #ccc
),但它是白色的。
任何想法如何在箭頭中添加邊框顏色?
[邊界CSS內的邊框]的可能重複(http://stackoverflow.com/questions/18057669/border-within-border-css) – Persijn