17周利用border-radius制作圆

利用border-radius制作圆

html

<body>
		<div class="circle">
			1
		</div>
	</body>

css

.circle{
	margin: 0 auto;
	width: 100px;
	height: 100px;
	background-color: red;
	text-align: center;
	line-height: 100px;
	border-radius: 50%;
}

posted @ 2026-06-28 22:40  feng-luo  阅读(5)  评论(0)    收藏  举报