代码示例
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>翡翠阁</title>
<style type="text/css">
h2{
background: url(img/cap.jpg) no-repeat;
width: 350px;
height: 75px;
caption-side: top;
}
.fc{
/* 分别设置单元格横向和纵向的间距 */
/* border-collapse: separate; */
border-spacing: 10px 30px;
width: 20px;
height: 20px;
}
table{
/* 默认值 单元格边框不合并 */
border-collapse: separate;
}
table,th{
border: 1px solid black;
}
.two{
width: 20px;
height: 100px;
text-align: center;
}
</style>
</head>
<body>
<table class="fc">
<caption><h2>翡翠阁</h2></caption>
<tr>
<th><img src="img/li1.jpg"/></th>
<th><img src="img/li2.jpg"/></th>
<th><img src="img/li3.jpg"/></th>
<th><img src="img/li4.jpg"/></th>
</tr>
<tr class="two">
<td>翡翠项链坠子<br />¥1500元</td>
<td>羊脂玉戒指<br />¥2300元</td>
<td>紫玉手链<br />¥2880元</td>
<td>羊头黄玉<br />¥999元</td>
</tr>
<tr>
<th><img src="img/li5.jpg"/></th>
<th><img src="img/li6.jpg"/></th>
<th><img src="img/li7.jpg"/></th>
<th><img src="img/li8.jpg"/></th>
</tr>
<tr class="two">
<td>翡翠挂件<br />¥1800元</td>
<td>翡翠蝴蝶胸口<br />¥3300元</td>
<td>翡翠耳坠<br />¥2380元</td>
<td>翡翠白金镯子<br />¥9999元</td>
</tr>
</table>
</body>
</html>
运行结果
代码示例
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>心灵之音</title>
<style type="text/css">
body{
background-image: url(../img/bg-0.jpg);
background-repeat: no-repeat;
}
.k1{
width: 700px;
height: 800px;
border: 1px solid #000000;
margin-left: 300px;
background-color: #fffff0;
}
.k2{
width: 700px;
height: 30px;
border: 1px solid #000000;
margin-left: 300px;
margin-top: -30px;
background-color: #808080;
}
.k3{
width: 200px;
height: 770px;
border: 1px solid #000000;
border-bottom: none;
margin-left: 300px;
margin-top: -800px;
}
.k4{
width: 500px;
height: 700px;
border: 1px solid #000000;
border-left: none;
margin-left: 500px;
margin-top: -770px;
background-color: #ffffff;
background-image: url(../img/list.jpg);
background-repeat: no-repeat;
background-size: 580px;
}
.k5{
width: 500px;
height: 70px;
border-right: 1px;
margin-left: 500px;
border-left: none solid #000000;
border-top: none;
border-bottom: none;
background-color: #808080;
}
#font1{
font-family: heiti;
font-size: 100px;
padding-left: 45px;
}
#font2{
font-size: 15px;
text-align: center;
}
li{
font-size: 20px;
margin-left: 20px;
}
a{
color: #000000;
font-size: 20px;
}
</style>
</head>
<body>
<table class="k1" id="font1">
<tr>
<td><p>心<br />灵<br />之<br />音</p></td>
</tr>
</table>
<table class="k2" id="font2">
<tr>
<td>版权所有©心灵之音网站</td>
</tr>
</table>
<table class="k3">
<tr>
<td></td>
</tr>
</table>
<table class="k4">
<tr>
<td>
<ol>
<!--audio要搭配controls才可以正常运行--><br /><br /><br /><br /><br /><br /><br />
<li>陈小朵 - 匆匆那年</li>
<br />
<audio src="../media/陈小朵 - 匆匆那年.mp3" controls="controls"></audio>
<br /><br /><br />
<li>陈颖恩 - 那些你很冒险的梦</li>
<audio src="../media/陈颖恩 - 那些你很冒险的梦.mp3" controls="controls"></audio>
<br /><br /><br />
<li>黄霄雲 - 左手指月</li>
<audio src="../media/黄霄雲 - 左手指月.mp3" controls="controls"></audio>
<br /><br /><br />
<li>李健 - 抚仙湖</li>
<audio src="../media/李健 - 抚仙湖.mp3" controls="controls"></audio>
</ol>
</td>
</tr>
</table>
<table class="k5">
<tr>
<td>
<a href="流行音乐">流行音乐</a>
<a href="摇滚音乐">摇滚音乐</a>
<a href="现代音乐">现代音乐</a>
<a href="民族音乐">民族音乐</a>
<br />
<a href="蓝调歌曲">蓝调歌曲</a>
<a href="管弦乐队">管弦乐队</a>
<a href="合奏乐">合奏乐</a>
<a href="更多...">更多...</a>
</td>
</tr>
</table>
</body>
</html>
运行结果