兩種顏色的方法
簡單來說,我想讓用戶名是紅色,而密碼是綠色,這樣不可以嗎?前兩天有人告訴我,可以的???
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標(biāo)簽</title>
</head>
<body>
<style>
span{
? ? color:red;
}
</style>
<form>
? ? ? <label for="username"><span>用戶名</span>:</label>
? ? ? <input type="text" ?name="username" id="username" value="" />
<style>
span{
? ? color:green;
}
</style>
? ? ? <label for="pass"><span>密碼:</span></label>
? ? ? <input type="password" ?name="pass" id="pass" value="" /> ? ?
? ? ? <input type="submit" value="確定" ?name="submit" />
? ? ? <input type="reset" value="重置" name="reset" />
</form> ?
</body>
</html>
2015-04-10
是因為沒有加<p></p>嗎
2015-04-05
我知道了。。。。