zoukankan      html  css  js  c++  java
  • border-radius——圆、半圆、椭圆、角标

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            div {
                background-color: pink;
                margin-bottom: 10px;
                font-size: 5px;
            }
            
            .c1 {
                 30px;
                height: 30px;
                border-radius: 50%;
            }
            
            .c2 {
                 60px;
                height: 30px;
                border-radius: 30px 30px 0 0;
                /* 这里不能写50%,宽高不同 */
            }
            
            .c3 {
                 60px;
                height: 30px;
                border-radius: 30px/15px;
                /* 椭圆设置参数对应width/height的一半值---对应椭圆的水平半径,垂直长度半径 */
            }
            
            .c4 {
                 30px;
                height: 30px;
                border-radius: 30px 30px 30px 0;
            }
        </style>
    </head>
    
    <body>
        <div class="c1">c1圆形</div>
    
        <div class="c2">c2上半圆</div>
        <div class="c3">c3椭圆</div>
        <div class="c4">c4角标</div>
        <div></div>
    </body>
    
    </html>
    
  • 相关阅读:
    公约数
    [TJOI2017]异或和
    [HNOI2014]世界树
    小清新数据结构题
    CF809E 【Surprise me!】
    [JXOI2017]颜色
    docker swarm集群
    jenkins构建maven项目
    jenkins软件工具部署
    jenkins持续集成
  • 原文地址:https://www.cnblogs.com/icemiaomiao3/p/14129530.html
Copyright © 2011-2022 走看看