两种颜色的方法
简单来说,我想让用户名是红色,而密码是绿色,这样不可以吗?前两天有人告诉我,可以的啊?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表单标签</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>