border-radius:100px / 10px;中这个除法是如何使用的
1234567891230123456
1234567891230123456
2015-02-05
3楼是对的..一楼的说法至少是把两条轴代表的轴搞反了,至少...
弧度还要看他对弧度的定义,
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<style>
.rounded {
width: 600px;
height: 200px;
background-color: yellow;
position: fixed;
left: 0;
top: 0;
border-style: dashed;
border-radius: 150px / 100px
}
.r2 {
width: 300px;
background-color: rgba(173, 32, 32, 0.212);
}
.r3 {
background-color: rgba(0, 0, 10, 0.5);
left: 300px;
}
</style>
<title>border-radius</title>
</head>
<body>
<p class="rounded">Rounded corners are groovy!</p>
<p class="rounded r2"></p>
<p class="rounded r2 r3"></p>
</body>
</html>
举报