• 2022-10-25
    当标记内嵌套[strong]标记时,就可以使用后代选择器对其中的[strong]标记进行控制,下列写法正确是( )(2.0)
    A: strong p{color:red;}
    B: p strong{color:red;}
    C: strong,p{color:red;}
    D: p.strong{color:red;}
  • B

    内容

    • 0

      把下面代码中第一个h1下面的strong元素变为红色,第二个strong不受影响。 &#91;h1&#93;这是&#91;strong&#93;非常&#91;/&#93;重要的&#91;/&#93; &#91;h1&#93;这个[em]已经&#91;strong&#93;非常&#91;/&#93;[/em]重要了</h1 A: h1>strong{color:red;} B: h1 strong{color:red;}

    • 1

      当<p>标记内嵌套<strong>标记时,就可以使用后代选择器对其中的<strong>标记进行控制,下列写法正确是()

    • 2

      在下面的CSS样式中()表示后代选择器。 A: P strong{color:red;} B: h1.txt{color:red;} C: h1,.txt{color:red;} D: #start{color:blue;}

    • 3

      要选择下列代码中第一个strong标签并将字体颜色设置为红色,该如何写css。();;我;超级;;喜欢;网页设计.;;我;不是很;喜欢;;网页设计.;; A: h1 strong{color:red;} B: .h1.strong{color:red;} C: strong{color:red;} D: h1>; strong{color:red;}

    • 4

      Is red a strong color a peaceful color?( )[2分]