首页 > 代码库 > 样式背景与前景

样式背景与前景

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
   <style type="text/css">
   #ceshi{   width:300px;
             height:300px;
			 background-color:#0F3;
			 background-image:url(%E7%99%BE%E5%BA%A6.png);
			 background-repeat:no-repeat;
			 background-position:center;
			 background-size:200px 200px;
			 font-family:"微软雅黑";
			 font-size:14px;
			 font-style:italic;
			 font-weight:bold;
			 text-decoration:underline;
			 text-align:center;
			 line-height:28px;
			 vertical-align:middle;
			 }
          </style>
</head>

<body>
     <div id="ceshi" style="width:3oopx; height:300px">文字</div>
     <p style="text-indent:30px">666666666666666666666666666666666666</p>

</body>

  技术分享

样式背景与前景