css实现背景渐变与底部固定的蓝天白云示例
网站建设 2023-01-28 20:49www.1681989.com免费网站
复制代码
代码如下:<?php
defed('_JEXEC') or die;
JHtml::_('behavior.framework', true);
//if(!$templateparams->get('html5', 0)):
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://.w3./TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://.w3./1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<!--jdoc:clude type="head" /-->
<style type="text/css">
html {
height: 100%;
}
body
{
<!--
background:url(http://127.0.0.1/joomla25/templates/usegear/images/bg.png);
/background-image:url(http://127.0.0.1/joomla25/templates/usegear/images/bg.png)/
/background-size:100% 100%;/
background-size:100% 800%;
background-repeat:no-repeat;
paddg-bottom:80px;
-->
height: 100%;
background-attachment: fixed;
marg:0;
paddg:0;
background-repeat: no-repeat;
background: rgb(30,87,153); / Old browsers /
background: -moz-lear-gradient(, rgba(30,87,153,1) 0%, rgba(125,185,232,1) 90%); / FF3.6+ /
background: -webkit-gradient(lear, left , left bottom, color-s(0%,rgba(30,87,153,1)), color-s(90%,rgba(125,185,232,1))); / Chrome,Safari4+ /
background: -webkit-lear-gradient(, rgba(30,87,153,1) 0%,rgba(125,185,232,1) 90%); / Chrome10+,Safari5.1+ /
background: -o-lear-gradient(, rgba(30,87,153,1) 0%,rgba(125,185,232,1) 90%); / Opera 11.10+ /
background: -ms-lear-gradient(, rgba(30,87,153,1) 0%,rgba(125,185,232,1) 90%); / IE10+ /
background: lear-gradient(to bottom, rgba(30,87,153,1) 0%,rgba(125,185,232,1) 90%); / W3C /
}
#body_foot
{
position:absolute; bottom:0px; right:0px;
background:url(http://127.0.0.1/LXX/pictures/cloud.png);/,url(http://127.0.0.1/LXX/pictures/cloud2.png);/
background-size:30% 180%;
-moz-background-size:63px 130px; / 老版本的 Firefox /
background-repeat:repeat;
paddg-bottom:1%;
marg:0;
}
#body_foot1
{
position:absolute; bottom:0px; right:0px;
background:url(http://127.0.0.1/LXX/pictures/cloud2.png);/,url(http://127.0.0.1/LXX/pictures/cloud2.png);/
background-size:40% 180%;
-moz-background-size:63px 130px; / 老版本的 Firefox /
background-repeat:repeat;
paddg-bottom:1%;
marg:0;
}
</style>
</head>
<body>
<div>
<p></p>
<p>rtyeryteryteryteryt</p>
<p>rtyeryt</p>
<p>ertyerytre</p>
<p>ertyerytre</p>
<p>ertyerytre</p>
<p>ertyerytre</p>
<p>ertyerytre</p>
<p>ertyerytre</p>
</div>
<div id="body_foot1" style="position:absolute;bottom:1px;height:20%; width:100%; ">
<div id="body_foot" style="position:absolute;bottom:1px;height:100%; width:100%; ">
</div>
</div>
</div>
</div>
</body>
</html>
其中主要有
1、渐变背景的的设定body{}
2、动态在低端的白云设定了body_foot1和body_foot1中的循环图片显示定义,以及div动态底端的设定。以及嵌套div掩盖白云图片规律性显示。
网站设计
- 静宁会SEO的网站建设公司:全面提升您的网络影
- 提升在线业务的关键:选择最佳的丽水网站建设
- 浙江网站优化发展潜力如何
- 井研专业的网站建设公司:打造您的在线品牌
- 灵山SEO网站建设公司:提升您的在线业务表现
- 蒙城网站建设优化公司:提升您网站表现的理想
- 阳谷企业网站优化:提升线上业务力的关键
- 樟树专业的网站建设公司:打造您在线业务的坚
- 通河百度SEO排名的策略与技巧
- 重庆百度快照排名如何进行精准的客户引流
- 重庆百度快照排名
- 常宁便宜的建站公司:助您轻松打造在线业务
- 巫溪百度网站优化:提升网站曝光率与流量的关
- 湖北整站优化怎么做才能放大客户需求
- 闸北网站建设多少钱?全面解析与预算规划
- 辽宁企业网站优化怎么做电话营销