css画半圆&&画圆弧

在这里插入图片描述

利用border-radius和border完成:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>test</title> 
<style> 
	.semicircle {
		width: 100px;
		height: 50px;
		border-radius: 0 0 50px 50px;
		background: #111111;
	}
	
	.semicircle2 {
		width: 100px;
		height: 50px;
		border-radius: 0 0 50px 50px;
		box-sizing: border-box;
	  	border: 2px solid #111111;
		border-top: none;
	}
</style>
</head>
<body>
	<div class="semicircle">
	</div>
	<br><br>
	<div class="semicircle2">
	</div>
	<br><br>
</body>
</html>

相关推荐

  1. 如何在three.js中3D圆弧及半圆弧组成圆

    2024-07-14 04:16:02       32 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-14 04:16:02       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-14 04:16:02       71 阅读
  3. 在Django里面运行非项目文件

    2024-07-14 04:16:02       58 阅读
  4. Python语言-面向对象

    2024-07-14 04:16:02       69 阅读

热门阅读

  1. 变分法笔记2

    2024-07-14 04:16:02       21 阅读
  2. 爬虫:Sentry-Span参数逆向

    2024-07-14 04:16:02       20 阅读
  3. android 嵌套webview,软键盘遮挡输入框

    2024-07-14 04:16:02       23 阅读
  4. ref和reactive区别

    2024-07-14 04:16:02       21 阅读
  5. 【随想】闲聊、沟通和谈判

    2024-07-14 04:16:02       20 阅读
  6. nginx防盗链

    2024-07-14 04:16:02       26 阅读
  7. 【C++编程】类的静态 static 成员 & 常 const 函数

    2024-07-14 04:16:02       19 阅读
  8. Python自定义可切片的类

    2024-07-14 04:16:02       20 阅读
  9. 力扣题解(最长的斐波那契子序列的长度)

    2024-07-14 04:16:02       24 阅读
  10. Mojo: 轻量级Perl框架的魔力

    2024-07-14 04:16:02       21 阅读
  11. 最长上升子序列(最长递增子序列,LIS)

    2024-07-14 04:16:02       20 阅读