一、点击div时页面进行跳转,通过onclick事件来实现
1.通过window.open函数
<div onclick="window.open('http://xxx.com')">在新窗口跳转</div>
<div onclick="window.open('http://xxx.com','_self')">在当前窗口跳转</div>
2.通过window.location.href函数
<div onclick="window.location.href= 'http://xxx.com';return false">在当前窗口跳转</div>
二、悬浮搜索框
![](https://img.haomeiwen.com/i11190228/b358f4df68d4b906.gif)
![](https://img.haomeiwen.com/i11190228/11670bc7e12abf18.png)
三、切割图
css快速剪切图片的方法和clip属性介绍
1.http://www.html5jscss.com/img-clip.html
网友评论