您的位置:首頁> 實例代碼> CSS3實例

CSS 繪制半圓

2019-11-20 09:12| 作者: admin| 查看: 1160| 評論: 0|來自: 螞蟻部落

YOUYUCSS3DECHUXIANHUIZHIYUANXINGSHIFEICHANGJIANDANQINGSONGDESHIQING。

BINGQIEYOUYUJISUANJIRUANYINGJIANDESHENGJI,JIBENSHANGWUXUKAOLVJIANRONGXINGWENTI。

秒速赛车打不开BENWENDEZUIZHONGMUDESHIHUIZHIYIGEBANYUAN,SHOUXIANTONGGUOCSSHUIZHIYIGEZHENGYUAN。

DAIMASHILIRUXIA:

[HTML] 純文本查看 復制代碼运行代码
<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<meta name="author" content="http://glbcf.cn/" />
<title>螞蟻部落</title>
<style type="text/css">
div{
  width: 100px;
  height: 100px;
  background-color: blue;
  border-radius: 50px;
}
</style>
</head>
<body>
  <div></div>
</body>
</html>

SHANGSHUDAIMAHUIZHIYIGEZHENGYUAN,YUNXINGXIAOGUOJIETURUXIA:

a:3:{s:3:\"pic\";s:43:\"portal/201911/20/091311itgmrk1fy3ebbrfm.png\";s:5:\"thumb\";s:0:\"\";s:6:\"remote\";N;}

XIAMIANGEICHUHUIZHIBANYUANDEDAIMA:

[HTML] 純文本查看 復制代碼运行代码
<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<meta name="author" content="http://glbcf.cn/" />
<title>螞蟻部落</title>
<style type="text/css">
div{
  width: 100px;
  height: 50px;
  background-color: blue;
  border-radius: 50px 50px 0 0;
}
</style>
</head>
<body>
  <div></div>
</body>
</html>

SHANGSHUDAIMAHUIZHILEYIGEBANYUAN,DAIMAYUNXINGXIAOGUOJIETURUXIA:

[HTML] 純文本查看 復制代碼运行代码
<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<meta name="author" content="http://glbcf.cn/" />
<title>螞蟻部落</title>
<style type="text/css">
div{
  width: 100px;
  height: 50px;
  background-color: blue;
  border-radius: 50px 50px 0 0;
}
</style>
</head>
<body>
  <div></div>
</body>
</html>

秒速赛车打不开SHANGSHUDAIMAHUIZHILEYIGEBANYUAN,DAIMAYUNXINGXIAOGUOJIETURUXIA:

a:3:{s:3:\"pic\";s:43:\"portal/201911/20/091420oex4h44db4hb14cc.png\";s:5:\"thumb\";s:0:\"\";s:6:\"remote\";N;}

SHANGMIANDAIMAHUIZHILEYIGEBANYUAN,XIAMIANJIANDANJIESHAOYIXIASHIXIANGUOCHENG。

(1).YUANSHIJUXINGDEKUANSHI100px,GAOSHI50px。

(2).border-radiusJUYOUSIGECANSHU。

(3).DIYIGE50pxGUIDINGZUOSHANGJIAOSIFENZHIYIYUANDESHUIPINGBANJINGHECHUIZHIBANJINGCHICUN。

秒速赛车打不开(4).DIERGE50pxGUIDINGYOUSHANGJIAOSIFENZHIYIYUANDESHUIPINGBANJINGHECHUIZHIBANJINGDECHICUN。

秒速赛车打不开(5).LIANGGESIFENZHIYIYUANDEBANJINGDOUSHI50px,HEQILAISHI100px,QIAHAOSHIJUXINGDEKUANDU。

(6).ZUOXIABUHEYOUXIABUYUANJIAOMEIYOUCAIYONGYUANJIAO,QIEGAODUSHI50px,SUOYIZUOSHANGJIAOHEYOUSHANGJIAOXIAOGUOQIAHAOYANSHENDAODIBU。

(7).最終生成一個半圓效果,具體原理參閱CSS border-radius一章節。


鮮花

握手

雷人

路過

雞蛋
上一篇:CSS 文本框圓角下一篇:CSS 繪制圓環

最新評論

返回頂部