摘要:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>学习css第一节课 —— CSS基础知识</title> <link
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>学习css第一节课 —— CSS基础知识</title>
<link rel="shortcut icon" type="image/x-icon" href="images/smallpic.png">
<link rel="stylesheet" type="text/css" href="css/index.css">
<style type="text/css">
*{padding:0px;margin:0px;}
p{color:red;}
#box{width:100px;height: 100px;background:red;}
.main{width:100px;height: 100px;background: blue;}
p i{font-weight: bold;font-size:60px;}
a[href="#"]{color:#ccc;}
a[href="http://www.php.cn"]{color:red;}
span{padding: 10px;background:red;/*padding-left:20px;padding-right:20px;*/}
div{width:100px;height:100px;background: pink;margin:30px auto;}
.box{width:100px;height:100px;border:1px /*solid double dashed*/dotted #ccc;border-radius:50px;}
.main{width:100px;height:100px;border-top:1px solid red;background: #cccccc;border-left:1px solid red;}
button{border:none;}
.shadow{width:300px;height:40px;box-shadow: 0px 5px 20px #ccc inset;}
</style>
</head>
<body>
<div class="box"></div>
<div class="main"></div>
<button>登录</button>
<div class="shadow"></div>
<span>php中文网</span><br>
<div></div>
<p style="font-weight: bold;">大家好,我是学生</p>
<div id="box"></div>
<div class="main"></div>
<p>学习<i>css</i>第一节课</p>
<h1>学习<i>css</i>第一节课</h1>
<a href="#">链接1</a>
<a href="http://www.php.cn">链接2</a>
</body>
</html>