• 2021-04-14
    114.阅读下面HTML代码,两个div水平之间的空白距离是( )。
    div{float:left;width:100px;height:200px;margin:5px;}
    ......
    ......
  • 10px

    内容

    • 0

      在网页中有一个id为content的div,下面( )正确设置它的宽度为200像素,高度为100像素,并且向左浮动。 A: #content{width:200px;height:100px;clear:left;} B: #content{width:200px;height:100px;float:left;} C: #content{width:100px;height:200px;clear:left;} D: #content{width:100px;height:200px;float:left;}

    • 1

      定义如下: div.parent { width:100px; height:70px; border:1px solid gray; } div.child { width:80px; height:30px; border:1px solid black; background-color:silver; } 同时,有 html 代码如下所示: 1 2 第二个 div 在页面上的最终位置是( )。 A: 其上边框距离其父元素(div) 为 15 px 距离 B: 其上边框距离其原有位置为 15 px 距离 C: 使用默认位置,定位并未发生改变 D: 其上边框距离 body 元素为 15 px 距离

    • 2

      阅读以下代码: 解析不正确的是:div {margin:0px;margin-left:10px; width:200px;height:200px; border:1px solid red ;}

    • 3

      代码div{width:100px;height:100px;}表示(    )?

    • 4

      21、对下列代码解析正确的是(_____)。 <style type="text/css"> body{ margin:0 } div{float:left; margin-left:10px; width:200px; height:200px; border:1px solid red } </style>