学习CSS第三节课

原创 2018-12-02 16:15:54 125
摘要:<!DOCTYPE html><html ><head> <meta charset="UTF-8"> <title>学习CSS第三节课</title> <style type="text/css"> .box{width:100px;height: 100px;border

<!DOCTYPE html>

<html >

<head>

<meta charset="UTF-8">

<title>学习CSS第三节课</title>

<style type="text/css">

.box{width:100px;height: 100px;border:1px solid #ccc;border-radius: 50px}

.box1{width:100px;height: 100px;border:1px double #ccc;}

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

button{border:none;}

.shadow {width: 300px;height: 40px;box-shadow: 0px 5px 25px #ccc inset; /*border:1px solid #ccc;*/}


</style>

</head>

<body>

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

<div class="box1"> </div>

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

<button>登录</button>

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


</body>

</html>


批改老师:天蓬老师批改时间:2018-12-02 16:36:14
老师总结:边框是盒模型中最重要的,最丰富的组件之一,因为它不像padding和margin,只能设置宽度,它还可以设置样式和颜色,并且,边框可以还可以做出许多有用的功能件

发布手记

热门词条