php如何固定头部与底部的css,css实现背景渐变与底部固定的蓝天白云示例

复制代码代码如下:

defined('_JEXEC') or die;

JHtml::_('behavior.framework', true);

//if(!$templateparams->get('html5', 0)):

?>

html {

height: 100%;

}

body

{

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;

}

rtyeryteryteryteryt

rtyeryt

ertyerytre

ertyerytre

ertyerytre

ertyerytre

ertyerytre

ertyerytre

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值