介個超鏈接的字體顏色我設定了白色,但是為什么它會變成紫色的呢,還有無序串列前面那個點點怎么去掉

附下代碼:剛學web的小白想請教下各位大佬

介個超鏈接的顏色我設定了白色,為什么它會變成白色的呢,還有無序串列前面那個點點怎么去掉。
附下代碼:
<!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:link{
text-decoration:none;
color: rgb(255,255,255)
}
a:hover{
background-color: white;
color: rgb(0,0,0)
}
</style>
</head>
<body>
<table>
<tr>
<th>外國最經典的文學名著</th>
</tr>
<tr>
<td>
<ul>
<li>
<a href="https://bbs.csdn.net/topics/ ">希臘神話——古希臘文明瑰寶</a ></li>
<li><a href="https://bbs.csdn.net/topics/#">伊索寓言——一部經典的寓言故事集</a ></li>
<li><a href="https://bbs.csdn.net/topics/#">荷馬史詩——橫亙千古的文學瑰寶</a ></li>
<li><a href="https://bbs.csdn.net/topics/#">俄狄浦斯王——古希臘悲劇的典范</a ></li>
</ul>
</td>
</tr>
</table>
</body>
</html>
uj5u.com熱心網友回復:
a {
color: white;
}
ul {
list-style: none
}
uj5u.com熱心網友回復:
<!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="https://bbs.csdn.net/topics/ ">希臘神話——古希臘文明瑰寶</a ></li>
<li><a href="https://bbs.csdn.net/topics/#">伊索寓言——一部經典的寓言故事集</a ></li>
<li><a href="https://bbs.csdn.net/topics/#">荷馬史詩——橫亙千古的文學瑰寶</a ></li>
<li><a href="https://bbs.csdn.net/topics/#">俄狄浦斯王——古希臘悲劇的典范</a ></li>
</ul>
</td>
</tr>
</table>
</body>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/20260.html
標籤:HTML(CSS)
上一篇:tocmat 500
下一篇:js彈窗計算器
