网页css问题

来源:百度知道 编辑:UC知道 时间:2024/05/16 19:34:46
#nav{background:url(img/index_bgnav.gif) repeat-x left top;height:117px;margin:10px auto;width:900px;position:relative;}

帮我解释一下代码

#nav
这行代码指定id为nav的属性如下:

background:url(img/index_bgnav.gif) repeat-x left top;
背景图片是img/index_bgnav.gif
背景图像从上、从左在横向上平铺

height:117px;
高度为117px

margin:10px auto;
内容边距为10

width:900px;
宽度为900

position:relative;
对象不可层叠,但将依据left,right,top,bottom等属性在正常文档流中偏移位置