美文网首页
边框的四个角

边框的四个角

作者: 思念LY | 来源:发表于2020-03-11 15:02 被阅读0次
1.png

引入fa 字体库,通过选择四个箭头图标实现四个角的效果,都是字体,大小样式可调节,不用图片加载快,循环起来无压力

    <!DOCTYPE html>
    <html>

    <head>
      <title>边框的四个角</title>
    </head>

    <body>
      <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css">
      <div class="item">
        <div class="name"><span>我是中心点</span></div>
        <i class="fa fa-angle-down item-up"></i>
        <i class="fa fa-angle-down item-down"></i>
        <i class="fa fa-angle-down item-up1"></i>
        <i class="fa fa-angle-down item-down1"></i>
      </div>
    </body>

    </html>
    <style type="text/css">
    body {
      background: #000;
    }

    .item {
      width: 100px;
      height: 100px;
      position: relative;
      color: #fff;
      background: #0d1c87;
    }

    .name {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
    }

    .item-up {
      position: absolute;
      left: -3px;
      top: -5px;
      color: #ff0;
      transform: rotate(135deg);
      font-size: 16px;
    }

    .item-down {
      position: absolute;
      left: -3px;
      bottom: -5px;
      color: #ff0;
      transform: rotate(45deg);
      font-size: 16px;
    }

    .item-up1 {
      position: absolute;
      right: -3px;
      top: -6px;
      color: #ff0;
      transform: rotate(225deg);
      font-size: 16px;
    }

    .item-down1 {
      position: absolute;
      right: -4px;
      bottom: -5px;
      color: #ff0;
      transform: rotate(-45deg);
      font-size: 16px;
    }
    </style>

相关文章

  • 2018-04-21 记录一些用到的CSS样式【留下了不学无术的

    圆角边框 CSS3 border-radius 属性 效果 只要四个角的边框 CSS background 属性 ...

  • 边框的四个角

    引入fa 字体库,通过选择四个箭头图标实现四个角的效果,都是字体,大小样式可调节,不用图片加载快,循环起来无压力

  • 2021-11-07 边框图片

    思路: 边框图片主要切下整个图片的四个角固定在元素的四个角,切割属性由bordre-image-slice决定,这...

  • 边框相关样式

    border-radius(边框圆角) 该属性用于设置边框圆角,属性值为圆角半径,当设置一个时为值为四个角的圆角半...

  • 边框圆角

    边框:border圆角:border-radius让四个角都成圆角 示例:HTML代码 style样式代码 圆角:...

  • css画气球

    代码: 效果图: border-radius: 给元素添加圆形边框,四个值是左上顺时针旋转四个角。 transfo...

  • 结构草图

    今天的孟母堂心灵绘画结构草图可谓不“草”: 画出边框后,以边框四个角及中心点共5点作为原点,共找了68个控制点,就...

  • 简笔画学习素材

    边框花纹素材 一、角框 二、线框素材 三、方形边框 三、环形边框 四、箭头 五、标签素材

  • CSS三角的做法

    没有设置width和height的盒子,只设置四个边框。 设置背景颜色透明即可得到想要的小三角。 .box{ ...

  • 缺角边框

    .out-rect {margin-top: 30px;display: flex;align-items: ce...

网友评论

      本文标题:边框的四个角

      本文链接:https://www.haomeiwen.com/subject/hprcjhtx.html