初学h5 css js 第一天

                                        第一次写HTML博客,我还是一个大二的学生
  1. 关于h5的文字语法:font-style: font-family: font-size: font-color: text-align: background-coor: 改变一段文字中的小部分文字`line-height:;
 2. <ul>(无序)   <ol>(有序)   <dl>(定型化)
    <li></li>           <li></li>         <dd><dt></dt></dd>
       </ul>               </ol>                 <dl>
  3.   <style type="text/css>

   .l    #y
   </style>
   <body>class="l" if="y"</body>
  4.例:斜体样式
     <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>文字的编辑</title>
	<style type="text/css">
		.lx{
			
			font-family: "宋体";
			font-size: 40px;
			color: #480001;
			list-style-position: outside;
			text-align: center;
		}
		.y{
			font-size: 35px;
			font-family: "黑体";
			color: #92595A;
			list-style-position: inside;
			text-align: center;
		}
		.d{
			line-height:50px;
		}
		
		body{
			background: #63DDE8;
		}
		.l{
			
			font-family: "宋体";
			font-size: 40px;
			color:#391CCE;
			list-style-position: outside;
			text-align: center;
			line-height:50px
		}
	
	</style>

</head>

<body>
<h1 class="lx">10月17日</h1>
<p class="y">今天我们就有两节课一节马克思,一节体育。其次18.46分又听了沙总的语句:未来可期,总会来;难过很难,总会过。</p>
<dl>
  <dt>马克思:</dt>
   <dd class="d">马克思讲的是经济决定上层建筑。<br>所以我国70.80年代把国家的中心任务改为以经济将设为中心。</dd>
</dl>
<dl>
  <dt>&nbsp;&nbsp;&nbsp;体育:</dt>
	<dd>这次的体育课是我们第一次学习太极拳。</dd>
</dl>
<dl class="l">
 <dt class="l">沙总语句:</dt>
	<dd><hr>未来可期,总会来;难过很难,总会过。</dd>
	<hr>
</dl>
	</body>
</html>

猜你喜欢

转载自blog.csdn.net/qq_43440595/article/details/83118554