为了账号安全,请及时绑定邮箱和手机立即绑定

css怎么选择input里面为text的标签

css怎么选择input里面为text的标签

qq_救救我吧_1 2016-06-22 09:02:15
想给input为text的单独设置样式,怎么选择
查看完整描述

1 回答

已采纳
?
小呀么小二郎呀

TA贡献22条经验 获得超38个赞

<!DOCTYPE html>
<html>
<head>
<style>
input[type="text"]
{
  width:150px;
  display:block;
  margin-bottom:10px;
  background-color:yellow;
  font-family: Verdana, Arial;
}

input[type="button"]
{
  width:120px;
  margin-left:35px;
  display:block;
  font-family: Verdana, Arial;
}
</style>
</head>
<body>

<form name="input" action="" method="get">
<input type="text" name="Name" value="Bill" size="20">
<input type="text" name="Name" value="Gates" size="20">
<input type="button" value="Example Button">

</form>
</body>
</html>

关键代码:input[type="text"]

查看完整回答
1 反对 回复 2016-06-22
  • 1 回答
  • 0 关注
  • 2630 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信