• 2022-06-01
    一个层引用style1类样式,当设置层中图片在文字的左端图文环绕时,图片的样式需要修改为为( )
    A: .style1 img { float:right; }
    B: style1 img { clear;left; }
    C: .style1 img { float:left; }
    D: img { clear;both; }
  • C

    内容

    • 0

      以下()是类选择器。 A: .style1{color:red;} B: C: style1{color:red;} D: @style1{color:red;} E: style1{color:red;}

    • 1

      ‎‌对如下两个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;}

    • 2

      查看如下 html 代码: <div style="float:left;">div text</div> <p style="clear:left;">p text</p> 此代码在页面上的显示效果为()

    • 3

      下面哪些样式设置可以清除层的浮动继承 A: .clearfloat{ clear:both;} B: .clearfloat{ clear:both;height:0;font-size:0; } C: .clearfloat{ float:left;} D: clearfloat{clear:left;}

    • 4

      关于浮动,下列样式规则中不正确的是( ) A: img{float:left;margin:20px;} B: img{float:right;right:30px;} C: img{float:right;width:120px;height:80px;} D: img{float:left;margin-bottom:2em;}