Skip to content

Commit

Permalink
#22 第二次试验 练习css
Browse files Browse the repository at this point in the history
  • Loading branch information
1517060322 committed Sep 27, 2017
1 parent ffefcc7 commit 2672efa
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
25 changes: 23 additions & 2 deletions 1517060322/1517060322.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,31 @@
<html>
<head>
<title>第一个网页</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<a href="http://www.baidu.com">点这里到百度</a>
<p>这是一个<b>没有什么内容</b>的段落</p>
<table>XXXXXX</table>

<p id="p1">这是一个<b>没有什么内容</b>的段落</p>
<div id="div1"><p id="p2">这是第二个没有什么内容的段落</p2></div>

<table id="table1" width="200" border="2">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>

</body>
</html>
14 changes: 14 additions & 0 deletions 1517060322/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@charset "utf-8";
/* CSS Document */

#p1 {
background-color: blue;
}

#div1{
background-color:red;
}

#table1{
border:thin double #F00
}

0 comments on commit 2672efa

Please sign in to comment.