网站CSS问题
来源:百度知道 编辑:UC知道 时间:2024/05/30 10:32:13
#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等属性在正常文档流中偏移位置
f翻译吗、
background:背景img/index_bgnav.gif图片是名为bgnav的.gif类型文件
-x横坐标left top左靠齐height高 px像素 margin边框 width宽
position位置relative
还是要做成css
<style>
h1{background:url(img/index_bgnav.gif) repeat-x left top;height:117px;margin:10px auto;width:900px;position:relative}
</style>
你的问题太笼统