• 2022-06-07
    下列CSS样式语句中,语法正确的是( )
    A: p{width:150px; border:2px solid 999999;}
    B: #bg{background=url(about.jpg) left no-repeat;}
    C: tig td{text-align:center; line-height:22px;}
    D: a{text-decoration:none,color:red}
  • C

    内容

    • 0

      下列哪个样式可以去掉超链接的下划线? A: B: nav ul li { float: left;} C: D: nav ul li a:hover, E: nav ul li a F: current { background: G: 177cb7;} H: a { color: I: 555; text-decoration: none;} J: K: nav ul li a { display: block; width: 135px; height: 56px; line-height: 56px; color: L: fff; text-align: center; font-size: 14px;}

    • 1

      下面代码使用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>

    • 2

      在css样式表中,下列设置页面背景图片的说法正确的是( A: background:src(images/news.jpg) bottom repeat-y; B: background:url(images/news.jpg)left bottom no-repeat C: 999999; D: background:url(images/news.jpg)left bottom repeat_y; E: background:link(images/news.jpg)left bottom no-repeat;

    • 3

      下列哪个CSS样式中设置了左浮动? A: * { margin: 0px; padding: 0px; list-style: none; font-size: 13px;} B: C: header h1 { float: left;} D: a { color: E: 555; text-decoration: none;} F: G: header h1 a { background: url(image/logo.jpg); width: 476px; height: 102px; display: block; text-indent: -9999px;}

    • 4

      对以下代码片段分析错误的是(___) 〈p style = "border : 1 px solid red font-size : 16 px ; backgroud-color : gray"〉 A: 段落的背景色为gray B: 段落的边框大小为1px C: 段落的字体大小为16px D: 样式应用错误