zoukankan      html  css  js  c++  java
  • css 四个角

    <style>
        .outter {
          position: relative;
          padding: 5px;
          height: 50px; 
           300px;
        }
        .outter::before {
          position: absolute;
          content: '';
          height: 10px;
           10px;
          right: 0;
          top: 0;
          border-right: 1px solid #00E8FF;
          border-top: 1px solid #00E8FF;
        }
        .outter::after {
            position: absolute;
            content: '';
            height: 10px;
             10px;
            left: 0;
            bottom: 0;
            border-left: 1px solid #00E8FF;
            border-bottom: 1px solid #00E8FF;
        }
        .content {
            position: relative;
            height: 50px;
        }
        .content::before {
          position: absolute;
          content: '';
          height: 10px;
           10px;
            left: -5px;
            top: -5px;
            border-left: 1px solid #00E8FF;
            border-top: 1px solid #00E8FF;
        }
        .content::after {
          position: absolute;
          content: '';
          height: 10px;
           10px;
            right: -5px;
            bottom: 5px;
            border-right: 1px solid #00E8FF;
            border-bottom: 1px solid #00E8FF;
        }
       
      </style>
     
     
    <div class="outter">
          <div class="content">

          </div>
          
      </div>
  • 相关阅读:
    UVA101 The Blocks Problem 题解
    洛谷P2790 ccj与zrz之积木问题 题解
    NOIp2018 TG day1 T2暨洛谷P5020 货币系统:题解
    网页学习:day1
    NOIP2018提高/普及成绩
    NOIP2018普及T4暨洛谷P5018 对称二叉树题解
    NOIP2018&2013提高组T1暨洛谷P5019 铺设道路
    比赛:小奔的方案 solution
    比赛:小奔的矩形solution
    比赛:小奔与不等四边形solution
  • 原文地址:https://www.cnblogs.com/zjpzjp/p/13093643.html
Copyright © 2011-2022 走看看