k15034035020 2015-12-17 11:46 采纳率: 0%
浏览 2301

html 求教这个怎么加背景图片啊




执子之手,与子偕老
body { /*background-image:url(images2/20150018.jpg); background-attachment:fixed;*/ margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #FF62FF; } .content { width: 80%; color: #90F; height: 100%; top: 0px; left: 10%; font-size: 18px; line-height: 25px; font-family: "微软雅黑"; margin-top: 0px; } body { color: #FFF; padding: 10px; background: #FFF url(/bg_105_wrap2.jpg) no-repeat fixed top center; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } .des { font-size: 15px; color: #3C3C3C; /*width: 100%;*/ text-shadow : 0px 0px 1px #fff; z-index:1000; right:20px; position:fixed !important; bottom:0px; } .des a { color: #3C3C3C; text-shadow : 0px 0px 1px #fff; } $(document).ready(function(e) { /*禁止右键和隐藏鼠标*/ $("body").bind("contextmenu", function() { return false; }); /*定义文字最底部显示到哪儿*/ var guangs=[" ","|"," ","|"]; var guangBiao="/"; var guangSub=0; var guang=setInterval("$.guang()",120); var subs=0; var string="亲<-- 致-->"; $.intent=function(str){ str="  "+str; //var reg=new RegExp("/█{1,2}/","i"); //创建正则RegExp对象 str=str.replace(eval("/█/gi"),"█"); return str; } string=$.intent(string); var echo=setInterval("$.echo()",300); $.guang=function(){ if(guangSub<guangs.length-1){ guangSub++; }else{ guangSub=0; } guangBiao=guangs[guangSub]; $("#guang").html(guangBiao); } $.echo=function(){ if(subs<string.length){ $("#txt").html($("#txt").html()+$.repl(string.substr(subs,1))); if($("#guang").offset().top > document.body.scrollHeight / 2){ window.scrollTo(0,$("#guang").offset().top); } $(".des").css("bottom","0px"); subs++; } } $.repl=function(str){ str=str.replace("\r\n","<br/>"); str=str.replace("\n","<br/>"); str=str.replace("█","<br/>"); return str; } });


  • 写回答

1条回答 默认 最新

  • devmiao 2015-12-17 15:43
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog