• 2022-06-07 问题

    以下可以控制id属性值为"nav"的元素的color属性为“绿色”的是( )。 A: document.getElementById("nav").style.color = "green" B: document.getElementsById("nav").style.color = "绿色" C: document.getElementsById("nav").style.color = "green" D: document.getElementById("nav").style.color = "绿色"

    以下可以控制id属性值为"nav"的元素的color属性为“绿色”的是( )。 A: document.getElementById("nav").style.color = "green" B: document.getElementsById("nav").style.color = "绿色" C: document.getElementsById("nav").style.color = "green" D: document.getElementById("nav").style.color = "绿色"

  • 2022-05-28 问题

    下列选项关于jQuery中设置类名为box的元素样式语法正确的是()。 A: $(".box").css("color","red";"border","1px<br/>solid blue"); B: $(".box").css({"color":"red","border":"1px<br/>solid blue"}); C: $(".box").style("color","red";"border","1px<br/>solid blue"); D: $(".box").style.color="red";

    下列选项关于jQuery中设置类名为box的元素样式语法正确的是()。 A: $(".box").css("color","red";"border","1px<br/>solid blue"); B: $(".box").css({"color":"red","border":"1px<br/>solid blue"}); C: $(".box").style("color","red";"border","1px<br/>solid blue"); D: $(".box").style.color="red";

  • 2022-06-11 问题

    下面哪些属于使用jquery修改元素属性的写法? A: $("元素").css("color","red"); B: $("元素").style.color="red"; C: $("元素").css({color:"red"}); D: document.getElementById("元素").color="red";

    下面哪些属于使用jquery修改元素属性的写法? A: $("元素").css("color","red"); B: $("元素").style.color="red"; C: $("元素").css({color:"red"}); D: document.getElementById("元素").color="red";

  • 2022-06-05 问题

    中国大学MOOC: 有关以下代码说法正确的有(    )。<style >   a{color:blue; text-decoration:none; }  a:link{color:blue;}  a:visited{color:green;}  a:hover{color:red;} </style> 

    中国大学MOOC: 有关以下代码说法正确的有(    )。<style >   a{color:blue; text-decoration:none; }  a:link{color:blue;}  a:visited{color:green;}  a:hover{color:red;} </style> 

  • 2022-05-26 问题

    下面代码使用HTML元素的id属性,将样式应用于网页上的某个段落:<p id="firstp">这是第一个段落</p> 以下关于样式规则定义正确的是(  )。 A: <style type="text/css">   p{color:red}</style> B: <style type="text/css">    #firstp {color:red}</style> C: <style type="text/css">   .firstp {color:red}</style> D: <style type="text/css">    p.firstp {color:red}</style>

    下面代码使用HTML元素的id属性,将样式应用于网页上的某个段落:<p id="firstp">这是第一个段落</p> 以下关于样式规则定义正确的是(  )。 A: <style type="text/css">   p{color:red}</style> B: <style type="text/css">    #firstp {color:red}</style> C: <style type="text/css">   .firstp {color:red}</style> D: <style type="text/css">    p.firstp {color:red}</style>

  • 2022-05-26 问题

    下面代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:<P id="firstp">这是第一个段落</P>下面选项中,( )正确定义了上面代码引用的样式规则。 A: <STYLE TYPE="text/css">p{color:red}</STYLE> B: <STYLE TYPE="text/css"> C: firstp{color:red}</STYLE> D: <STYLE TYPE="text/css">.firstp {color:red}</STYLE> E: <STYLE TYPE="text/css">p.firstp{color:red}</STYLE>

    下面代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:<P id="firstp">这是第一个段落</P>下面选项中,( )正确定义了上面代码引用的样式规则。 A: <STYLE TYPE="text/css">p{color:red}</STYLE> B: <STYLE TYPE="text/css"> C: firstp{color:red}</STYLE> D: <STYLE TYPE="text/css">.firstp {color:red}</STYLE> E: <STYLE TYPE="text/css">p.firstp{color:red}</STYLE>

  • 2022-06-05 问题

    智慧职教: 有关下面代码片段的说法,( )是正确的。 <STYLE type="text/css"> A{ color:blue; text-decoration:none; } A:link{ color:blue; } A:hover{ color:red; } A:visited{ color:green; } </STYLE>

    智慧职教: 有关下面代码片段的说法,( )是正确的。 <STYLE type="text/css"> A{ color:blue; text-decoration:none; } A:link{ color:blue; } A:hover{ color:red; } A:visited{ color:green; } </STYLE>

  • 2022-05-26 问题

    在下面代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:&lt;P id=”firstp”&gt;这是一个段落&lt;/P&gt;下面选项中,( )正确将段落文字设置为红色。 A: <Style Type=”text/css”> P {color:red} </Style> B: <Style Type=”text/css”> C: firstp {color:red} </Style> D: <Style Type=”text/css”> .firstp {color:red} </Style> E: <Style Type=”text/css”> P.firstp {color:red} </Style>

    在下面代码使用HTML元素的ID属性,将样式应用于网页上的某个段落:&lt;P id=”firstp”&gt;这是一个段落&lt;/P&gt;下面选项中,( )正确将段落文字设置为红色。 A: <Style Type=”text/css”> P {color:red} </Style> B: <Style Type=”text/css”> C: firstp {color:red} </Style> D: <Style Type=”text/css”> .firstp {color:red} </Style> E: <Style Type=”text/css”> P.firstp {color:red} </Style>

  • 2022-05-30 问题

    为了给页面所有〈h1〉标题创建样式规则,指定将所有的〈h1〉标题显示为蓝色,字体显示为Arial。下列操作正确的是(___)。 A: 〈style type="text/css"〉 h1{color: "blue"} h1{font-family: "arial"} 〈/style〉 B: 〈style type="text/css"〉 h1{color: "blue"; fontface: "arial"} 〈/style〉 C: 〈style type="text/css"〉 h1{color: "blue"; font-family: "arial"} 〈/style〉 D: 〈style type="text/css"〉 h1{color: "blue";} h1{fontface: "arial"} 〈/style〉

    为了给页面所有〈h1〉标题创建样式规则,指定将所有的〈h1〉标题显示为蓝色,字体显示为Arial。下列操作正确的是(___)。 A: 〈style type="text/css"〉 h1{color: "blue"} h1{font-family: "arial"} 〈/style〉 B: 〈style type="text/css"〉 h1{color: "blue"; fontface: "arial"} 〈/style〉 C: 〈style type="text/css"〉 h1{color: "blue"; font-family: "arial"} 〈/style〉 D: 〈style type="text/css"〉 h1{color: "blue";} h1{fontface: "arial"} 〈/style〉

  • 2022-06-06 问题

    在HTML中,使用HTML元素的class属性,将样式应用于网页上某个段落的代码如下所示:<Pclass=“firstp”>这是一个段落</P>下面选项中,()正确定义了上面代码引用的样式规则。 A: <style type="text/css">P{color:red}</style>  B: <style type="text/css">#firstp {color:red} </style>  C: <style type="text/css"> .firstp{color:red} </style>  D: <style type="text/css"> E: firstp{color:red}</style>

    在HTML中,使用HTML元素的class属性,将样式应用于网页上某个段落的代码如下所示:<Pclass=“firstp”>这是一个段落</P>下面选项中,()正确定义了上面代码引用的样式规则。 A: <style type="text/css">P{color:red}</style>  B: <style type="text/css">#firstp {color:red} </style>  C: <style type="text/css"> .firstp{color:red} </style>  D: <style type="text/css"> E: firstp{color:red}</style>

  • 1 2 3 4 5 6 7 8 9 10