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>
  • 相关阅读:
    nginx重启失败的解决方法
    Linux开机禁用开启防火墙
    Linux查看系统版本信息的几种方法
    Linux修改时区的正确方法
    Linux中awk的gsub函数用法
    Linux 的mktemp 命令详解
    tomcat的简单概要小结
    {面试题8: 旋转数组的最小数字}
    {面试题7: 使用两个队列实现一个栈}
    {面试题7: 用两个栈实现队列}
  • 原文地址:https://www.cnblogs.com/zjpzjp/p/13093643.html
Copyright © 2011-2022 走看看