欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

css實(shí)現(xiàn)背景漸變與底部固定的藍(lán)天白云示例

  發(fā)布時(shí)間:2013-06-24 16:21:13   作者:佚名   我要評(píng)論
漸變背景的的設(shè)定:通過定義body實(shí)現(xiàn);動(dòng)態(tài)在低端的白云:設(shè)定了body_foot1和body_foot1中的循環(huán)圖片顯示定義,以及div動(dòng)態(tài)底端的設(shè)定,具體實(shí)現(xiàn)如下,感興趣的朋友可以參考下哈

復(fù)制代碼
代碼如下:

<?php
defined('_JEXEC') or die;
JHtml::_('behavior.framework', true);
//if(!$templateparams->get('html5', 0)):
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<!--jdoc:include 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;
padding-bottom:80px;
-->
height: 100%;
background-attachment: fixed;
margin:0;
padding:0;
background-repeat: no-repeat;
background: rgb(30,87,153); /* Old browsers */
background: -moz-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(125,185,232,1) 90%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(90%,rgba(125,185,232,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(125,185,232,1) 90%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(125,185,232,1) 90%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(125,185,232,1) 90%); /* IE10+ */
background: linear-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;
padding-bottom:1%;
margin: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;
padding-bottom:1%;
margin: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、漸變背景的的設(shè)定:body{}
2、動(dòng)態(tài)在低端的白云:設(shè)定了body_foot1和body_foot1中的循環(huán)圖片顯示定義,以及div動(dòng)態(tài)底端的設(shè)定。以及嵌套div掩蓋白云圖片規(guī)律性顯示。

相關(guān)文章

  • div footer標(biāo)簽css實(shí)現(xiàn)位于頁面底部固定

    Web頁面的“footer”部分隨著飄上來,處在頁面的半腰中間,給視覺效果帶來極大的影響,讓你的頁面看上去很不好看,特別是現(xiàn)在寬屏越來越多,這種現(xiàn)象更是常見,本文將介紹兩
    2012-12-02
  • 詳解八種方法實(shí)現(xiàn)CSS頁面底部固定

    這篇文章主要介紹了詳解八種方法實(shí)現(xiàn)CSS頁面底部固定的相關(guān)資料,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧
    2019-01-08

最新評(píng)論