I have the following section of code:缺少下劃線<a href> and <u>
echo "<form>
<div id=\"error\"align=\"center\">";
echo "You've either key-ed in the wrong <b>username</b> or wrong <b>password</b>. <br/>";
echo "Please contact person in-charged or click <u><a href=\"login.php\">here</a></u> to login again.";
echo "</div></form>";
and the corresponding CSS:
#error{
font-family: "Acens", Verdana, Tahoma;
background: -webkit-linear-gradient(#fff, #2f4f4f);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
html, body {
height:100%;
width:100%;
margin:0px;
}
body {
display:table;
vertical-align:middle;
}
form {
display:table-cell;
vertical-align:middle;
width:240px;
margin:0px auto;
}
The output:
And shown in the image, there isnt any underline at here
which was expected. However, it still able to direct user to another page.
某處在你的CSS你是文本裝飾設置爲none –
你爲什麼加入標籤。 link應該爲你加下劃線。 –
你應該爲你的CSS添加'text-decoration:underline;'爲'#error a' – BrownEyes