网页制作 第六章测试

第1部分 总题数: 5

  1. 【单选题】 (2分)
    下面选项中,( )可以设置网页中某个标签的右外边距为10像素。
    A. margin:10px 0 0 0;
    B. padding-right:10px;
    C. margin:0 10px;
    D. margin:0 10 0 0px;
    本题总得分2分
    在这里插入图片描述
  2. 【单选题】 (2分)
    阅读下面HTML代码,如果期望tabs位于box容器的右下角,则需要添加的CSS样式是( )。
    A. #box { position:relative; } #tabs { position:absolute; right:0; bottom:0; }
    B. #tabs { position:absolute; right:0; bottom:0; }
    C. #box { position:relative; } #tabs { position:right bottom; }
    D. #tabs { position:relative; right:0; bottom:0; }
    本题总得分2分
    在这里插入图片描述
  3. 【单选题】 (2分)
    在HTML页面中,要通过无列表符号实现横向的导航菜单,不需要使用到的CSS属性是( )。
    A. z-index
    B. float
    C. list-style
    D. padding
    本题总得分2分
    在这里插入图片描述
  4. 【单选题】 (2分)
    CSS盒子模型中表示内容与边框间的距离的属性为( ),表示盒子与其盒子之间的距离的属性为( )。
    A. padding margin
    B. margin border
    C. padding border
    D. margin padding
    本题总得分2分
    在这里插入图片描述
  5. 【单选题】 (2分)
    在网页中有一个id为content的div,下面( )正确设置它的宽度为200像素,高度为100像素,并且向左浮动。
    A. #content{width:200px;height:100px;clear:left;}
    B. #content{width:100px;height:200px;float:left;}
    C. #content{width:200px;height:100px;float:left;}
    D. #content{width:100px;height:200px;clear:left;}
    本题总得分2分
    在这里插入图片描述
  • 5
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值