【发布时间】:2015-02-28 23:04:43
【问题描述】:
我无法让我的链接保持白色。
这是Head代码。
float1 {
position: absolute;
width: 250px;
height: 40px;
z-index: 1;
left: 40px;
top: 300px;
font-size: 35px;
background-color: black;
color: white;
text-align: center;
color: white;
text-decoration: none;
}
<div id="float1">
<font color="white"><a href="#" onclick="myfun();">Home</a></font>
</div>
【问题讨论】:
-
字体标签已弃用,html5不支持,请改用css
标签: html css text colors hyperlink