css實現梯形樣式(含有border)


類似本文熱門評論 效果

.hot-comment-title{
float:right;
position:absolute;
right: -8px;
top: -30px;
padding: 0;
text-decoration: none;
display: inline-block;
z-index: 0;
width:140px;
height:40px;
line-height:28px;
text-align:right;
padding-right:10px;
font-size:16px;
}
.hot-comment-title::before{
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 1px solid #2486C9;
border-bottom: none;
-webkit-transform:perspective(1em)scale(1.1,1.3) rotateX(5deg);
z-index: -1;
-webkit-transform-origin:bottom right;
}
   border: 1px solid #2486C9;
border-bottom: none;
-webkit-transform:perspective(1em)scale(1.1,1.3) rotateX(5deg);
z-index: -1;
-webkit-transform-origin:bottom right; 核心代碼


免責聲明!

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



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