星空网 > 软件开发 > 网页设计

滚动广告+CSS布局

研究了一下CSS布局以及CSS固定窗口,在此基础上设计了滚动广告。

先附上代码:(使用jquery-1.7-min)

<html><head><title>CSS布局及滚动广告</title><style>#my_windows{margin-left:2%;margin-top:20%;width:6%;height:20%;position:fixed;background-color:yellow;}#container{width:80%;height:200%;margin:0 auto;/*设置整个容器在浏览器中水平居中*/background-color:yellow;}#header{height:20%;background-color:blue;}#content{height:60%;background:#0FF;margin-top:20px;}#content_left{height:80%;width:25%;margin:3%;background:#90C;float:left;}#content_right{height:80%;width:63%;margin:3%;background:#90C;float:left;}#Footer{  height:16%;  background:#90C;  margin-top:20px;}.clear{clear:both;}</style><script type="text/javascript" src='/images/loading.gif' data-original="jquery-1.7.1.min.js"></script><script>$(document).ready(function(){  $("#adds").css({"margin-top":"140px"});  setInterval("manytime()",2000);});function manytime(){  var mytest=$("#adds");  mytest.show();  mytest.css({"margin-top":"140px"});  mytest.animate({"margin-top":"0px"},1000,function(){mytest.hide()});}</script></head><body><div id="my_windows"><p id="adds">广告</p></div><div id="container">  <div id="header">头部  </div>    <div id="content">  <div id="content_left">左侧</div>  <div id="content_right">右侧</div>  </div>    <div class="Clear"></div>  <div id="footer">脚本</div></div></body></html>

感谢博文  http://www.kwstu.com/ArticleView/divcss_2013929173533658 的CSS布局技术支持




原标题:滚动广告+CSS布局

关键词:CSS

CSS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

年轻一代成为B2B采购决策者,在线购买需增强社交性和娱乐性:https://www.kjdsnews.com/a/1387894.html
大量灰色品类商品看准Web3.0电商平台巨大商机,ShopTalk2023亮点回顾:https://www.kjdsnews.com/a/1387895.html
亚马逊渐失拉美市场,速卖通赶超成智利第一大跨境平台:https://www.kjdsnews.com/a/1387896.html
2023年的并购类境外投资ODI备案流程以及材料清单:https://www.kjdsnews.com/a/1387897.html
德国VAT申报一步一步指引入口:https://www.kjdsnews.com/a/1387898.html
德国VAT申报一年几次?:https://www.kjdsnews.com/a/1387899.html
长治婚庆女司仪和主持人:https://www.vstour.cn/a/366176.html
北京丰台区水上乐园哪家好玩?:https://www.vstour.cn/a/366177.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流