CSS outline 与 border-radius
html公开前 25 行,完整代码需登录
<html>
<head>
<meta charset="utf-8">
<title>outline 与 border-radius</title>
<style>
.radius-box {
width: 200px;
height: 100px;
background-color: #f0f0f0;
border: 2px solid #333;
margin: 20px;
padding: 15px;
display: inline-block;
}
/* 圆角元素,outline 会跟随圆角 */
.rounded {
border-radius: 20px;
outline: 4px solid #0066ff;
}
/* 大圆角 */
.large-radius {
border-radius: 50px;
outline: 4px solid #ff6600;