首页 试题广场 > 试题详情
单选题

【C029145】有如下HTML代码片段,
<p>姓名:<input type="text" /></p>
<p>护照号码:<input type="text" /></p>
<p>性别:<input type="radio" name="sex" />男 <input type="radio" name=" sex " />女</p>
<p>国籍:<select name="text"><option>中国</option> <option>美国</option> <option>英国</option></select></p>
<p>你理想的旅游地:<input type="checkbox" />巴厘岛 <input type="checkbox" />富士山 <input type="checkbox" />艾菲尔塔<p>
<p>是否喜欢马尔代夫:<input type="radio" name="likeArea" />是 <input type="radio" name="likeArea" />否</p>
<p><button id="text">提交</button></p>,请使用jQuery将所有文本输入框的背景颜色设置为red,下列选择正确的是( )。

  • A.$("[name=text]").css("background","red");
  • B.$("[type=text]").css("background","red");
  • C.$("[type=radio]").css("background","red");
  • D.$("[id=text]").css("background","red");
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 5个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部