61,112
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS样式作业</title>
<style>
table{
border:2px solid white;
/*border-collapse:collapse;*/
width: 300px;
}
th{
background-color: #3cc;
text-align: center;
font-size:18px;
line-height: 3em
}
td{
color:white;
background-color: rgb(0,0,0);
font-size:12px;
}
a:visited{
background-color: none;
color: rgb(255,255,255)
}
a:link{
text-decoration:none;
color: rgb(255,255,255)
}
a:hover{
background-color: white;
color: rgb(0,0,0)
}
ul{list-style-type:none}
</style>
</head>
<body>
<table>
<tr>
<th>外国最经典的文学名著</th>
</tr>
<tr>
<td>
<ul>
<li>
<a href=" ">希腊神话——古希腊文明瑰宝</a ></li>
<li><a href="#">伊索寓言——一部经典的寓言故事集</a ></li>
<li><a href="#">荷马史诗——横亘千古的文学瑰宝</a ></li>
<li><a href="#">俄狄浦斯王——古希腊悲剧的典范</a ></li>
</ul>
</td>
</tr>
</table>
</body>
a {
color: white;
}
ul {
list-style: none
}