6257rv7 发表于 2024-6-30 10:56:55

计算机二级web题目(4)--CSS基本


    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">系列专栏:</p>
    <div style="color: black; text-align: left; margin-bottom: 10px;"><a style="color: black;"><span style="color: black;"><span style="color: black;">计算机二级web_叶绿体不忘<span style="color: black;">呼气</span>-CSDN博客</span><span style="color: black;"><span style="color: black;">​</span>blog.csdn.net/m0_46653805/category_11229976.html</span></span><span style="color: black;"><img src="https://pic3.zhimg.com/v2-4a0088407fa12c72c911deed15a1920a_ipico.jpg" style="width: 50%; margin-bottom: 20px;"></span></a></div>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1 [单选题] CSS指的是下列(B)的缩写。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. Computer style Sheets</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. Cascading style Sheets</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. Creative stye Sheets</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. Colerful siyle Sheets</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2 [单选魃] 在HTML文档中,应该在下列哪个部分引用<span style="color: black;">外边</span>样式表?(D)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. 文档的末尾</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. &lt;title&gt;部分</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. &lt;body&gt;部分</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. &lt;head&gt;部分</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">解析:①<span style="color: black;">经过</span>&lt;link href=""/&gt;引入<span style="color: black;">外边</span>样式表。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3 [单选题] 在以下的语句中,正确引用外配样式表的语句是(B)。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. &lt;style src="mystyle.CSS"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. &lt;link rel="slesheet" type="text/css" href="mystyle.CSS"&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. &lt;stylesheet&gt;mystyle.css&lt;/stylesheet&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. &lt;link src="mystyle.CSS" &gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">4 [单选题] 下列哪个属性显用来定义内联样式?(D)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. font</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. class</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. styles</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. style</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">解析:①&lt;div style="Color: red;border: 1px dashed black" &gt;内联样式&lt;/div&gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">5 [单选题]下列正确地在CSS文件中<span style="color: black;">插进</span>注释的语句是(C)。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. //this is a comment</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. //thisisa comment//</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. /*this isa comment*/</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. this is a comment</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">解析:①JavaScript和css注释都是/*......*/。②HTML注释是&lt;!--......--&gt;。③Java单行注释是//,多行注释是/*......*/。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">6 [单选题]下列符合CSS语法的正确语句是(C)。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. body : coler=black</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. {body; color:black}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. body{color:back;}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. {body : color=black}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">解析:①css语句格式<span style="color: black;">便是</span>xxx{属性:值;}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">7 [单选题]下列代码中能将所有P标签内文字加粗的是(D)。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. &lt;D style=" text-size :bold" &gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. &lt;p stye="font-size : bold" &gt;</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. p{text-size : bold}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. p{font-weight: bold}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">解析:①font-size是关于文字<span style="color: black;">体积</span>(文本尺寸)的,其值<span style="color: black;">无</span>bold。②<span style="color: black;">无</span>text-size这个属性。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">8 [单选题] 下列CSS属性中,<span style="color: black;">掌控</span>文本尺寸的属性是(A)。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. font-size</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. text-style</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. font-style</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. text-size</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">解析:①font-style是关于文字<span style="color: black;">是不是</span>倾斜</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">9 [单选题]在CSS的长度单位中, 1pc等于多少pt?(C)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. 8</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. 10</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. 12</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. 14</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">10 [单选题]改变某个元素的文本颜色的CSS属性是(C)。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. test-color</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. Fgcoior</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. color</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. text color</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">11 [单选题] 下列可用于改变页面背景颜色的属性是(B)。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. bgcolor</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. bac<span style="color: black;">公斤</span>round-color</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. color</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. backcolor</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">12 [单选题]下列语句中,<span style="color: black;">表示</span><span style="color: black;">无</span>下划线的超链接的语句是(A)。</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. a{text-decoration : none}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">B. a{text-decoration : no underline}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">C. a{underine : none}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">D. a{decoration : no underline}</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">13 [单选题]下列哪个样式的能够<span style="color: black;">表示</span><span style="color: black;">这般</span>一个边框 :上边框10像素,下边框5像素,左边框20像素,右边框1像素?(D)</p>
    <p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">A. border-width : 10px 5px 20px 1</p>




qzmjef 发表于 2024-9-28 05:30:30

感谢您的精彩评论,为我带来了新的思考角度。

4zhvml8 发表于 2024-10-25 02:11:23

谷歌外链发布 http://www.fok120.com/
页: [1]
查看完整版本: 计算机二级web题目(4)--CSS基本