首页 > Web开发 > 详细

CSS立体标签实现

时间:2015-09-30 12:51:14      阅读:152      评论:0      收藏:0      [点我收藏+]
    <style>
        .tag { background-color: #de3f33; position: relative; text-align: center; color: #fff; line-height: 40px; width: 150px; margin: 100px auto; }
            .tag:before { content: ‘‘; width: 0; height: 0; border-bottom: 5px solid #b23838; border-left: 5px solid transparent; position: absolute; top: -5px; left: 0; }
    </style>
   <div class="tag">最佳答案</div>

 

CSS立体标签实现

原文:http://www.cnblogs.com/talentzemin/p/4848651.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!