A: .style1 img { float:right; }
B: style1 img { clear;left; }
C: .style1 img { float:left; }
D: img { clear;both; }
举一反三
- 一个层引用style1类样式,当设置层中图片在文字的左端图文环绕时,图片的样式需要修改为为 A: .style1 img { float:left; } B: .style1 img { float:right; } C: style1 img { float;left; } D: img { clear;both; }
- 中国大学MOOC: 一个层引用style1类样式,当设置层中图片在文字的左端图文环绕时,图片的样式需要修改为为
- 下面哪个样式设置是错误的 ( ) A: .style1{font-family:“黑体”;} B: .style1{font-size:20px;} C: .style1{font-color: D: 00ff00;} E: .style1{text-align: center;}
- 下面哪个样式不属于标签样式( ) A: img B: p C: .style1 D: ody
- 中国大学MOOC:在页面中分别设置下面的样式:img{float:left;}img{float:right;}网页中的图片将会?
内容
- 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;}