css 样式

<!doctype html>
<html lang="en">
 <head>
 
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
<style type="text/css">
p{
  color:red;
  font-size:2em;
  }

  li{
  color:blue;
  list-style:none;
          }

		  .first{
           color:red;

		  }

	#third {
  font-family:黑体;

	}

</style>
 </head>
 <body>
  <center>
<h1>CSS样式表</h1>
<hr>
<p>
  <font color="red">白日依山尽,</font><br>
   黄河如海流,<br>
   欲穷千里目,<br>
   更好一层楼。<br>

</p>


  <li class="first">白日依山尽,</li>
   <li>黄河如海流,</li>
   <li id="third">欲穷千里目,</li>
   <li>更好一层楼。</li>


css 简介

css 选择器

标签选择器

类选择器 

ID选择器


css:层叠样式表,能够正在网页表现与内容分离的一种样式设计语言

cascade style sheet

css + div  


<style type="text/css">

  选择器{

   熟悉:值;
}
<style>


标签选择器:

p{font-size:2em;}



类选择器:

.info{background:#ff0;};




















  </center>
 </body>
</html>

原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6200230.html