第六章 浮动与定位:本章主要介绍浮动与定位。其中包括元素的三种浮动方式、溢出属性及其应用、元素的几种定位方法、块级元素和行内元素的转换以及案例综合。6.1元素的浮动:元素的三种浮动方式[单选题]下面选项中,( )可以设置网页中某个标签的右外边距为10像素。
6.2清除浮动:本节介绍清除浮动。
6.3overflow属性:溢出属性及其应用
6.4元素的定位:元素的几种定位方法
6.5元素的类型与转换:块级元素和行内元素的转换
6.6阶段案例——制作网页焦点图:案例综合
6.7阶段案例——团购页面:本章介绍阶段案例——团购页面
padding-right:10px;
margin:0 10px;
margin:10px 0 0 0;
margin:0 10 0 0px;
答案:margin:0 10px;
[单选题]阅读下面HTML代码,如果期望tabs位于box容器的右下角,则需要添加的CSS样式是( )。
#box { position:relative; } #tabs { position:right bottom; }
#box { position:relative; } #tabs { position:absolute; right:0; bottom:0; }
#tabs { position:relative; right:0; bottom:0; }
#tabs { position:absolute; right:0; bottom:0; }[单选题]在HTML页面中,要通过无列表符号实现横向的导航菜单,不需要使用到的CSS属性是( )。
padding
list-style
float
z-index
[单选题]CSS盒子模型中表示内容与边框间的距离的属性为( ),表示盒子与其盒子之间的距离的属性为( )。
padding border
padding margin
margin border
margin padding [单选题]在网页中有一个id为content的div,下面( )正确设置它的宽度为200像素,高度为100像素,并且向左浮动。
#content{width:200px;height:100px;float:left;}
#content{width:100px;height:200px;float:left;}
#content{width:200px;height:100px;clear:left;}
#content{width:100px;height:200px;clear:left;}
温馨提示支付 ¥1.00 元后可查看付费内容,请先翻页预览!