自己的小案例

Original 2019-03-08 11:57:57 263
abstract:order-raidus设置边框的圆角 box-shadow:设置边框的阴影 box-shadow:0px 6px 30px #ccc inset; 默认是向外的阴影,如果设置inset则向内的阴影<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"&g

order-raidus设置边框的圆角 box-shadow:设置边框的阴影 box-shadow:0px 6px 30px #ccc inset; 默认是向外的阴影,如果设置inset则向内的阴影


<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>网页头部</title>

<link rel="shortcut icon" type="image/x-icon" href="images/02.jpg">

<link rel="shortcut" type="text/css" href="css/index.css">

<style type="text/css">  

.box{width: 100px;height: 100px;border: 1px /*solid double dashed*/ dotted #cccccc;border-radius: 20px; }

.main{width: 100px;height: 100px;border-top: 1px solid red;background: #ccc;border-left: 1px solid red;}

button{border: none}

.shadow{width: 300px;height: 40px;box-shadow: 10px 5px 3px #ccc;border: 1px}

</style>



</head>


<body>

<div class="box"></div>

<div class="main"></div>

<button>登录</button>

<div class="shadow"></div>

</body>


</html>


Correcting teacher:天蓬老师Correction time:2019-03-08 14:26:17
Teacher's summary:向内的边框样式, 极少用到, 把重点放在常用的几个上, 还不, 不要滥用, 用得好有点睛之用, 用不好, 就是画蛇添足

Release Notes

Popular Entries