為什么0后面加上px就通不過
/*任務(wù)部分*/? ?
div.semi-circle{?
? ? height:100px;
? ? width:50px;
? ? background:#9da;
? ? border-radius:50px 0 0 50px;
? ? }
/*任務(wù)部分*/? ?
div.semi-circle{?
? ? height:100px;
? ? width:50px;
? ? background:#9da;
? ? border-radius:50px 0 0 50px;
? ? }
2019-02-18
舉報
2019-03-27
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>border-radius</title>
<style type="text/css">
/*任務(wù)部分*/? ?
div.semi-circle{?
? ? height:100px;
? ? width:50px;
? ? background:blue;
? ? ? ?border-radius:50px 0 0 50px;
? ? margin:10px;
? ? }
div.shixing{
? ??
? ? ? height:100px;
? ? ? width:100px;
? ? ? background:red;
? ? ? border-radius:50px;
? ? ? margin:20px;
}
div.you{
? ? ? ? height:100px;
? ? ? ? width:50px;
? ? ? ? background:blue;
? ? ? ? border-radius: 0 50px 50px? 0 ;
? ??
}
?
?div.shang{
? ? ? ?height:50px;
? ? ? ?width:100px;
? ? ? ?background:red;
? ? ? ?border-radius:50px 50px 0 0;
? ? ? ?margin:10px;
?}
?div.xia{
? ? ?height:50px;
? ? ?width:100px;
? ? ?background:red;
? ? ?margin:10px;
? ? ?border-radius:0 0 50px 50px;
?}
</style>
</head>
<body>
<div class="circle">
</div>
<br/>
<!--任務(wù)部分-->
<div class="semi-circle"></div>
<div class="you"></div>
<div class="shixing"></div>
<div class="shang"></div>
<div class="xia"></div>
? ??
</body>
</html>
2019-02-18
你可能是打錯代碼了, 0后面加px是完全可以的