• 2022-05-26
    应用after()方法向id为A的元素的后面添加一个段落“<;p>;test<;/p>;”,代码为_________________。
  • $("#A").after("<;p>;test<;/p>;")

    内容

    • 0

      有如下代码:<p id=”one”>这是段落标签</p>,将<p>中的字体设为18px,字体为微软雅黑,以下正确的是:

    • 1

      隐藏一个id为test的元素的方法有哪些?() A: $("#test").hide() B: $("#test").fadeTo() C: $("#test").fadeOut() D: $("#test").fadeToggle()

    • 2

      使用标签指定式选择器,让段落使用id名为test的样式,下列写法正确的是 A: p .test{color:red;} B: p C: test{color:red;} D: p.test{color:red;} E: p,test{color:red;}

    • 3

      为id为test的元素绑定单击事件的代码为 A: $(" B: id").click() C: $("id").click() D: $(" E: id").click(function(){ }) F: $("id").click(function(){ })

    • 4

      有一个表单文本框元素的ID为“test”,那么在JavaScript中获取该文本框的值,具体代码为___________________________