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;
    }
  • 相关阅读:
    HTML 介绍及标签
    MySQL 索引
    子网划分
    网络基础
    python爬虫之12306网站--车站信息查询
    python集合与字典的用法
    python列表与元组的用法
    python条件语句
    python字符串处理以及字符串格式化
    python数据类型分类以及运算类型
  • 原文地址:https://www.cnblogs.com/FlyingLiao/p/10611567.html
Copyright © 2011-2022 走看看