首页 > 代码库 > 样式表练习

样式表练习

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
p,span,tr{font-size:30px; font-family:"宋体"; background-color:#F00; color:#FFF; font-style:italic;}
#p,#u{color:green;}
.cc{color:yellow}
*{font-weight:200;}
tr {color: #006;}
</style>
</head>

<body>
<p id="p">英沃金融集团(Envol Forex)为全世界的客户提供网上外汇交易服务。</p>
<p id="u">你好你好</p>
<span>英沃金融集团(Envol Forex)</span><br />
<span>为全世界的客户提供网上外汇交易服务。</span>
<table border="1" height="150" width="150">
<tr class="cc" id="dd">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
<tr>
<td bgcolor="#FFFF00">1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</table>
</body>
</html>

样式表练习