css實現div左側突出一個帶邊框的三角形



.vip-control-header{
width: 600px;
height: auto;
background: #F8F8F8;
border: 1px solid #e2e2e2;
padding: 10px 0 10px 10px;
position: relative;
border-radius: 5px;
}
.vip-control-header:before,.vip-control-header:after{
position: absolute;
content: " ";
top: 16px;
left: -16px;
display: block;
width: 0;
height: 0;
border: 8px solid #F8F8F8;
border-color: transparent #F8F8F8 transparent transparent;
z-index: 111;
}
.vip-control-header:after{
left: -17px;
border-color: transparent #e2e2e2 transparent transparent;
z-index: 11;
}


<div class="vip-control-header">
<span>頁面標題: </span>
<input class="headerChange" type="text" onchange="headerChange()"/>
</div>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM