博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
对联广告 的css
阅读量:7208 次
发布时间:2019-06-29

本文共 1191 字,大约阅读时间需要 3 分钟。

hot3.png

页面:

css:

.r1{width:100px;height:100px;background:red;float:right;        position:fixed !important; top/**/:200px;        position:absolute; z-index:300; top:expression(offsetParent.scrollTop+200);right:20px;}.r2{width:100px;height:100px;background:red;float:right;        position:fixed !important; top/**/:320px;        position:absolute; z-index:400; top:expression(offsetParent.scrollTop+300);right:20px;}.l1{width:100px;height:100px;background:red;float:right;        position:fixed !important; top/**/:200px;        position:absolute; z-index:300; top:expression(offsetParent.scrollTop+200);left:20px;}.l2{width:100px;height:100px;background:red;float:right;        position:fixed !important; top/**/:320px;        position:absolute; z-index:400; top:expression(offsetParent.scrollTop+300);left:20px;}

js:

function guanbiduilianguanggao(){document.getElementById('l1').style.display = 'none';document.getElementById('l2').style.display = 'none';document.getElementById('r1').style.display = 'none';document.getElementById('r2').style.display = 'none';}

效果:

转载于:https://my.oschina.net/wangt10/blog/508366

你可能感兴趣的文章
【转】 Oracle 中的一些重要V$ 动态性能视图,系统视图和表
查看>>
模板模式 c#
查看>>
由于js词法性质和全局变量被更改,循环绑定的click事件执行时变量和定义时 不一致的bug,各种解决方案。...
查看>>
图片处理--边缘高亮
查看>>
解析Disruptor:解密内存障
查看>>
管道-过滤器模式学习总结
查看>>
投放数据获取(三):搜狗
查看>>
springboot之使用redistemplate优雅地操作redis
查看>>
《斯坦福大学:编程范式》第5节1:void*类型的使用:一个兼容所有类型的线性搜索...
查看>>
环境配置之 Debug 和 Release - iOS
查看>>
Java精选笔记_Java入门
查看>>
The Cow-Signal
查看>>
centOS7 初始环境配置
查看>>
HTML5 Canvas绘制跟随鼠标移动的球
查看>>
leetcode1048
查看>>
Log Analysis - DataFrame
查看>>
Spring Data Solr
查看>>
页面渲染的同步和异步区别?
查看>>
MongoDB基本使用
查看>>
[转]Eclipse中远程调试Hadoop
查看>>