加入收藏 | 设为首页 | 会员中心 | 我要投稿 聊城站长网 (https://www.0635zz.com/)- 智能语音交互、行业智能、AI应用、云计算、5G!
当前位置: 首页 > 综合聚焦 > 编程要点 > 语言 > 正文

在CSS3中画半圆弧线

发布时间:2023-11-03 14:32:29 所属栏目:语言 来源:
导读:本文介绍了css3实现画半圆弧线的示例代码,分享给大家,具体如下:

css代码

.circle1 {

width: 100px;

height: 200px;

border: 1px solid black;

border-radius: 100% 0 0
本文介绍了css3实现画半圆弧线的示例代码,分享给大家,具体如下:
 
css代码
 
.circle1 {
 
    width: 100px;
 
    height: 200px;
 
    border: 1px solid black;
 
    border-radius: 100% 0 0 100%/50%;
 
    border-right: none;
 
}
 
.circle2 {
 
    width: 200px;
 
    height: 100px;
 
    border: 1px solid black;
 
    border-radius: 50% 50% 0 0/100% 100% 0 0;
 
    border-bottom: none;
 
}
 
.circle3 {
 
    width: 100px;
 
    height: 200px;
 
    border: 1px solid black;
 
    border-radius: 0 100% 100% 0/50%;
 
    border-left: none;
 
}
 
.circle4 {
 
    width: 200px;
 
    height: 100px;
 
    border: 1px solid black;
 
    border-radius: 0 0 50% 50%/0 0 100% 100% ;
 
    border-top: none;
 
}
 
html代码
 
<ul>
 
    <li><div class="circle1"></div></li>
 
    <li><div class="circle2"></div></li>
 
    <li><div class="circle3"></div></li>
 
    <li><div class="circle4"></div></li>
 
</ul>
 
 

(编辑:聊城站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章