• 2022-05-31
    在HTML页面中有一个id为nav的,下面()可以设置它向右浮动。
    A: #nav{float : left}
    B: #nav{float : right}
    C: #nav{clear : left}
    D: #nav{clear : right}
  • B

    内容

    • 0

      ‎‌对如下两个div进行水平左右排列的CSS样式定义是( )。 ‌[div id=”left”]左列 [div id=”right”]右列‌‎‌ A: left{float:left;} B: right{float:left;} C: left{float:left;} D: right{clear:both;} E: left{float:left;} .right{float:left;} F: left{float:left;} .right{ clear:both;}

    • 1

      以下可以控制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 = "绿色"

    • 2

      在CSS中,给元素设置左浮动,应该设置()属性 A: float:none; B: float:left; C: float:right; D: clear:left;

    • 3

      能够清除左浮动的属性是()。 A: float:left B: clear:left; C: clear:right D: clear:both

    • 4

      下列哪个样式可以去掉超链接的下划线? 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;}