标题 | css3实现多背景展示效果通过css3定位多张背景 |
范文 | 代码如下: <!doctype html> <html> <head> <meta http-equiv=content-type content=text/html; charset=utf-8 /> <title>css3实现多背景展示</title> </head> <body> <div style=height:5400px;> <div style=background:url(/uploads/202504/02/m_fff653c539e10000015c06f796e04021.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;></div> <div style=background:url(/uploads/202504/02/m_dfff53c539e40000015c06f6ff044021.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;></div> <div style=background:url(/uploads/202504/02/m_0b3d53ce00b100000174d030a1fd4021.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;></div> <div style=background:url(/uploads/202504/02/m_c24d53ce007300000174d0debb3e4022.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;></div> <div style=background:url(/uploads/202504/02/m_606453ce006500000174d00396f94022.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;></div> <div style=background:url(/uploads/202504/02/m_71fe53ce005e00000174d0000ac04022.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;></div> </div> </body> </html> 通过css3定位多张背景并且使用固定属性。 |
随便看 |
|
在线学习网范文大全提供好词好句、学习总结、工作总结、演讲稿等写作素材及范文模板,是学习及工作的有利工具。