zoukankan      html  css  js  c++  java
  • DIV/CSS对联漂浮广告代码

    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>DIV/CSS对联漂浮广告代码</title>
    <style>
    .r1{80px;height:80px;background:red;float:right;
    position:fixed !important; top/**/:200px;
    position:absolute; z-index:300; top:expression(offsetParent.scrollTop+200);right:20px;}
    .r2{80px;height:80px;background:red;float:right;
    position:fixed !important; top/**/:300px;
    position:absolute; z-index:400; top:expression(offsetParent.scrollTop+300);right:20px;}
    .l1{80px;height:80px;background:red;float:right;
    position:fixed !important; top/**/:200px;
    position:absolute; z-index:300; top:expression(offsetParent.scrollTop+200);left:20px;}
    .l2{80px;height:80px;background:red;float:right;
    position:fixed !important; top/**/:300px;
    position:absolute; z-index:400; top:expression(offsetParent.scrollTop+300);left:20px;}
    </style>
    </head>

    <body>
    <div class="r1"><a href="/d/adclick.php?id=11&url=http://www.25idc.com" target='_about'><img src="/js/pic/piao-l-1.gif" width="80" height="80" border="0" /></a></div>
    <div class="r2"><a href="/d/adclick.php?id=11&url=http://www.25idc.com" target='_about'><img src="/js/pic/piao-l-1.gif" width="80" height="80" border="0" /></a></div>
    <div class="l1"><a href="/d/adclick.php?id=11&url=http://www.25idc.com" target='_about'><img src="/js/pic/piao-l-1.gif" width="80" height="80" border="0" /></a></div>
    <div class="l2"><a href="/d/adclick.php?id=11&url=http://www.25idc.com" target='_about'><img src="/js/pic/piao-l-1.gif" width="80" height="80" border="0" /></a></div>
    </body>
    </html>

  • 相关阅读:
    前端把html表格生成为excel表格
    图片预加载
    angular开发中的两大问题
    3d图片点击切换
    图片懒加载
    angular排序
    vue1.0 与 Vue2.0的一些区别 及用法
    图片懒加载
    图片放大镜
    图片小精灵 & 解决同时给一个元素设置背景问题 &jq登录注册切换
  • 原文地址:https://www.cnblogs.com/lavenderzh/p/1130715.html
Copyright © 2011-2022 走看看