网站背景是一个整张大图,网页内容多了,就会repeat-y整张大图,现在把大图分成三段header footer 和中间的部分,现在想让header永远在最上面,中产是的这部分,如果页面内容多就repeat-y,footer永远在最下面。
各位大神求帮助。
现在把大图分成三段header footer 和中间的部分
re:
这三段还在一张图里?
background:transparent url(xxx.png) no-repeat scroll ?% ?%;
现在把大图分成三段header footer 和中间的部分
re:
这三段还在一张图里?
background:transparent url(xxx.png) no-repeat scroll ?% ?%;
#header{...} #body{background:url(footer.png)repeat-y center center}#footer{background:url(footer.png)no-repeat center center}
#header{...} #body{background:url(footer.png)repeat-y center center}#footer{background:url(footer.png)no-repeat center center} #header{position:fixed top;}
#body{background-image:url(),background-repeat:repeat-y;}
#footer{position:fexed bottom;}
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号