• 用CSS制作返回顶部的向上箭头

    发布时间:2018-07-20 20:57:20
    作者:ynkulusi
  • <html>
    <head>
    <style type="text/css">
    p 
    {
    width:0px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid rgb(250,0,255,.5);
    margin-bottom:0px;
    }
    #d1
    {
    width:30px;
    height:35px;
    background-color:rgb(250,0,255,.5);
    text-align:center;
    font-size:12px;
    }
    #d2
    {
    margin-top:0px;
    width:0px;
    border-left: 15px solid rgb(250,0,255,.5);
    border-right: 15px solid rgb(250,0,255,.5);
    border-bottom: 15px solid transparent;
    }
    </style>
    </head>
    
    <body>
    <p></p>
    <div id="d1">
    <a href="#">返回顶部</a>
    </div>
    <div id="d2"></div>
    </body>
    
    </html>
    
  • 分类:css
    标签: border CSS
    评论数:3 阅读数:830