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>

  • 相关阅读:
    C/C++ 链接汇总
    C# 网页操作
    Win10屏幕开始菜单图标丢失修复方案无意中发现的...
    AI 人工智能
    GIT 命令
    Layui / WEB UI
    PHP DES解密 对应Java SHA1PRNG方式加密
    视频参数介绍及关系《转》
    分布式时系统/服务 数据一致性方案
    JS埋点 小结
  • 原文地址:https://www.cnblogs.com/lavenderzh/p/1130715.html
Copyright © 2011-2022 走看看