- 3/5
- 1
- 2
- 3
- 4
- 5
织梦DedeCMS视频教程买空间 租服务器 选网硕互联! 无忧站长工具,百度权重一键全查!
CSS控制网页背景不滚动,也就是拖动滚动条,网页的内容随着滚动,但是背景依然存在。背景不随滚动条滚动,相信你以前见到过这种功能,代码有超简单哦,自己看吧。
<html> <head> <style type="text/css"> body { background-image:url('/images/logo.gif'); background-repeat: no-repeat; background-attachment: fixed; } #codefans_net{ height:1628px; } </style> <title>CSS背景不滚动</title> </head> <body> <div id="codefans_net">拖动滚动条,文字会消失,背景依然存在。</div> </body> </html>