对联-网页设计html对联样式代码,纯CSS做对联广告代码

 2025-02-07  阅读 13  评论 0

摘要:?页设计html对联样式代码,纯CSS做对联?告代码

?页设计

html

对联样式代码

,

CSS

做对联?告代码

上?篇?章介绍了使?JS?法对联?告,带有可关闭的功能:《JS对联?告 - 可点击关闭的两侧对联?告代码》

下?为?家再介绍?个纯CSS(也不能说全纯CSS,还是有?句javascript代码的,可直接写在模板中,不会被拦截)

如果是百分百纯CSS,是不具有关闭?告的功能,只能使?position进?相对浏览器进?悬浮固定才?!

css 代码.couplet_ad

{position:fixed;bottom:auto; top:0; width: 120px; height: 230px; z-index:99999; margin-top:158px;}

* html .couplet_ad

{_position:absolute;

_bottom:auto;

_top:expression(eval(document.documentElement.scrollTop));}

.couplet_ad a{ display:block; cursor:pointer;}

#ad_left{ left: 0px;}

#ad_right{ right: 0px;}

html代码(下代码直接放到html中即可)

对联?告左边

关闭

对联?告右边

关闭

这个js是关闭按钮代码

function ad_left(){

document.getElementById('ad_left').style.display="none";

}

function ad_right(){

document.getElementById('ad_right').style.display="none";

}

懂得生活网为大家提供:生活,学习,工作,技巧,常识等内容。

原文链接:http://dongdeshenghuo.com/xuetangzhishi/124996.html

管理员

  • 内容522166
  • 积分0
  • 金币0
关于我们
懂得生活主要分享生活,学习,工作,技巧,常识等内容。
联系方式
电话:
地址:广东省东莞市
Email:admin@qq.com

Copyright © 2022 懂得生活(dongdeshenghuo.com) Inc. 保留所有权利。

页面耗时0.0856秒, 内存占用1.75 MB, 访问数据库23次

粤ICP备13075863号