abstrak:order-raidus設(shè)置邊框的圓角 box-shadow:設(shè)置邊框的陰影 box-shadow:0px 6px 30px #ccc inset; 默認(rèn)是向外的陰影,如果設(shè)置inset則向內(nèi)的陰影<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"&g
order-raidus設(shè)置邊框的圓角 box-shadow:設(shè)置邊框的陰影 box-shadow:0px 6px 30px #ccc inset; 默認(rèn)是向外的陰影,如果設(shè)置inset則向內(nèi)的陰影
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>網(wǎng)頁頭部</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>
Guru membetulkan:天蓬老師Masa pembetulan:2019-03-08 14:26:17
Rumusan guru:向內(nèi)的邊框樣式, 極少用到, 把重點放在常用的幾個上, 還不, 不要濫用, 用得好有點睛之用, 用不好, 就是畫蛇添足