首页 > Web开发 > 详细

css3实现虚拟三角形

时间:2016-10-08 16:20:09      阅读:249      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*上箭头*/
        .triangle-up {
            width:0;
            height:0;
            border:10px solid transparent;
            border-bottom-color:yellow;
        }
        /*下箭头*/
        .triangle-down {
            width:0;
            height:0;
            /*transform: translate(-50%,-50%);*/
            border:10px solid transparent;
            border-top-color:yellow;
        }
        /*左箭头*/
        .triangle-left {
            width:0;
            height:0;
            border:10px solid transparent;
            border-right-color:yellow;
        }
        /*右箭头*/
        .triangle-right {
            width:0;
            height:0;
            /*transform: translate(-50%,0);*/
            border:10px solid transparent;
            border-left-color:yellow;
        }
    </style>
</head>
<body>
    <div class="triangle-right"></div>
</body>
</html>

 

css3实现虚拟三角形

原文:http://www.cnblogs.com/joesbell/p/5938730.html

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