简要咨询咨询QQ网站导航网站搜索手机站点联系我们设为首页加入收藏 

CSS3实现多背景展示效果通过CSS3定位多张背景

来源:易贤网   阅读:1009 次  日期:2014-08-14 16:07:42

温馨提示:易贤网小编为您整理了“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(http://zcimg.zcool.com.cn/zcimg/m_fff653c539e10000015c06f796e0.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;"></div>

   <div style="background:url(http://zcimg.zcool.com.cn/zcimg/m_dfff53c539e40000015c06f6ff04.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;"></div>

   <div style="background:url(http://zcimg.zcool.com.cn/zcimg/m_0b3d53ce00b100000174d030a1fd.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;"></div>

   <div style="background:url(http://zcimg.zcool.com.cn/zcimg/m_c24d53ce007300000174d0debb3e.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;"></div>

   <div style="background:url(http://zcimg.zcool.com.cn/zcimg/m_606453ce006500000174d00396f9.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;"></div>

   <div style="background:url(http://zcimg.zcool.com.cn/zcimg/m_71fe53ce005e00000174d0000ac0.jpg) no-repeat center center fixed;height:880px;margin-bottom:10px;"></div>

  </div>

</body>

</html>

通过css3定位多张背景并且使用固定属性。

更多信息请查看IT技术专栏

更多信息请查看网页制作
点此处就本文及相关问题在本站进行非正式的简要咨询(便捷快速)】     【点此处查询各地各类考试咨询QQ号码及交流群
上一篇:CSS 控制Html页面高度导致抖动问题的原因
下一篇:纯css实现的tab切换效果(使用锚点作为标记)
易贤网手机网站地址:CSS3实现多背景展示效果通过CSS3定位多张背景
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!