zoukankan      html  css  js  c++  java
  • 55.1拓展之边框border-width属性。

    效果地址:https://scrimba.com/c/cQpDKkSN

    HTML code:

    <div class="border1 borders"></div>
    <div class="border2 borders"></div>
    <div class="border3 borders"></div>
    <div class="border4 borders"></div>
    <div class="border5 borders"></div>
    <div class="border6 borders"></div>

    CSS code:

    html, body {
        margin: 0;
        padding: 0;
    }
    body{
        height: 100vh;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        background-color: gray;
    }
    .borders{
        width: 10em;
        height: 10em;
    }
    .border1{
        /* 上右下左 */
        border-width: 0.1em 0.2em 0.3em 0.4em;
        border-style: solid;
        border-color: red green blue black;
    }
    .border2{
        border-radius: 50%;
        border-style: solid;
        border-width: 0.1em 0.2em 0.3em 0.4em;
        border-color: red green blue black;
    }
    .border3{
        border-radius: 50%;
        border-width: 0.1em 0 0 0;
        border-style: solid;
        border-color: white red blue black;
    }
    .border4{
        border-radius: 50%;
        border-width: 0.1em 0.1em 0 0;
        border-style: solid;
        border-color: white red blue black;
    }
    .border5{
        border-radius: 50%;
        border-width: 0.1em 0.1em 0.1em 0;
        border-style: solid;
        border-color: white red blue black;
    }
    .border6{
        border-radius: 50%;
        border-width: 0.1em 0.1em 0.1em 0.1em;
        border-style: solid;
        border-color: white red blue black;
    }
  • 相关阅读:
    BZOJ3270: 博物馆【概率DP】【高斯消元】
    SpringCloud入门概述
    微服务的技术栈
    Markdown基础教程
    分布式架构和垂直架构
    ZooKeeper和CAP理论及一致性原则
    zookeer集群的特性
    java操作zookeeper
    Zookeeper命令使用
    Zookeeper的安装
  • 原文地址:https://www.cnblogs.com/FlyingLiao/p/10611567.html
Copyright © 2011-2022 走看看