返回CSS盒模型—......登陆

CSS盒模型——边框

刘春山2019-04-17 21:49:29181

<!--CSS基础-->

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title>CSS第三节课--边框</title>

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

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

<style type="text/css">

/**{padding:0px;margin: 0px;}浏览器自带边距清零*/

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

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

button{border: none;}

.shadow{width: 100px;height: 40px;box-shadow: 0px 6px 30px #ccc inset;border: 1px solid #ccc;text-align: center;line-height: 40px;}

.shadow:hover{box-shadow: 0px 6px 30px red inset;}

</style>

</head>

<body>

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

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

<button>登录</button>-->

<div class="shadow" style="float: left;">HTML</div>

<div class="shadow" style="float: left;">CSS</div>

<div class="shadow" style="float: left;">JavaScript</div>

</body>


</html>


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送