您当前的位置: 首页 » div css实例教程 » 背景CSS固定代码

背景CSS固定代码

全体背景固定:
<STYLE type="text/css">
   BODY {background:url(/URL) fixed;}
</STYLE>

右上背景固定:
<STYLE type="text/css">
   BODY{
     background-image:url("背景URL");
     background-position:100% 0%;
     background-repeat :no-repeat;
     background-attachment:fixed;

  }
</STYLE>

右下背景固定:
<STYLE type="text/css">
   BODY{
     background-image:url("背景URL");
     background-position:100% 100%;
     background-repeat :no-repeat;
     background-attachment:fixed;
   }
</STYLE>
  
左下背景固定:
<STYLE type="text/css">

   BODY{
     background-image:url("背景URL");
     background-position:0% 100%;
     background-repeat :no-repeat;
     background-attachment:fixed;
   }

</STYLE>

左上背景固定:
<STYLE type="text/css">

   BODY{
     background-image:url("背景URL");
     background-position:0% 0%;
     background-repeat :no-repeat;
     background-attachment:fixed;
   }

</STYLE>
  
中间背景固定:
<STYLE type="text/css">

   BODY{
     background-image:url("背景URL");
     background-position:50% 50%;
     background-repeat :no-repeat;
     background-attachment:fixed;
   }

</STYLE>
  
横条背景的使用方法:
<style type="text/css">
 body {
   background-image: url("背景URL");
   background-attachment: fixed;
   background-repeat: repeat-y;
   background-position: left;
   background-color: #ffffff;
   }

</style
上一篇:没有文章了
留下脚印压缩包密码:sosuo8
名字:
全部评论:
loading...
申明:本站部分文章来自网络,由于各种原因对文章的来源无从考究,如果您是“ 背景CSS固定代码 ”的原作者,若侵犯您的版权,请与我联系!联系方法:email:ahuinan@21cn.com  QQ:106494262
文章档案
  • 作者:佚名
  • 来源:转载
  • 日期:2010-12-28 10:39:00
  • 点击:loading...
网友投票(您觉得这篇文章怎样?)
loadding...请稍侯......