浮动广告窗示例
代码下载:https://files.cnblogs.com/files/xiandedanteng/floatAdvWindow.rar
效果:
关键代码:
<div style="position:fixed;top:50%;left:20%;margin:-250px 0 0 -250px;height:500px;width:500px;z-index:999;"> <a href="http://www.163.com"><img src="mihuan2.jpg" style="border:0px;"/></a> </div> <div style="position:fixed;top:50%;right:-15%;margin:-250px 0 0 -250px;height:500px;width:500px;z-index:999;"> <a href="http://www.163.com"><img src="mihuan2.jpg" style="border:0px;"/></a> </div>
本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/xiandedanteng/p/7465670.html,如需转载请自行联系原作者