效果图如下:

HTML代码如下:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.left,.right{
position: fixed;
top: 250px;
}
.left{
left: 0;
}
.right{
right: 0;
}
.left span,.right span{
width: 20px;
height: 20px;
background: #ccc;
font-size: 14px;
color: #333;
position: absolute;
right: 0;
top: 0;
text-align: center;
cursor: pointer;
}
</style>
<script src="js/jquery-1.12.4.min.js"></script>
<script>
$(function(){
$('span').click(function(){
$(this).parent().hide(500);
});
})
</script>
</head>
<body>
<div class="left"><img src="data:images/left.jpg" alt=""><span>X</span></div>
<div class="right"><img src="data:images/right.jpg" alt=""><span>X</span></div>
</body>
</html>

  

最新文章

  1. JAVA8 十大新特性详解
  2. The server does not support version 3.0 of the J2EE Web module specification
  3. 利用Qt Assistant 定制帮助文档
  4. poj1837 dp
  5. db2建立表空间
  6. 获得N位数字字母随机组合
  7. linux 下启动程序的时候会显示坏的解释器,或者没有那个文件
  8. JavaScript原型及继承
  9. Eclipse使用技巧 - 2. Eclipse自动补全功能轻松设置
  10. Microsoft Azure Tutorial: Build your first movie inventory web app with just a few lines of code
  11. GIL 全局解释器
  12. 如何查看memcache的性能
  13. SVM 核方法
  14. gtest测试代码编写思想
  15. mysql监控工具sqlprofiler,类似sqlserver的profiler工具
  16. c# 协变和逆变的理解
  17. 为Github 托管项目的访问添加SSH keys
  18. Ubuntu系统启动报错:The system is running in low-graphics mode
  19. python学习之老男孩python全栈第九期_day020知识点总结——序列化模块、模块的导入和使用
  20. BZOJ3325 [Scoi2013]密码【Manacher】【构造】【贪心】

热门文章

  1. SecureCRT中文乱码解决方案
  2. gulp 无损压缩图片
  3. DXperience Winforms新版本13.2功能预览
  4. Andoid Intent学习之在各个活动之间传递数据
  5. msql 综合练习
  6. hibernate 模拟实现和What is and Why O/R Mapping
  7. JavaScript 编写随机四位数验证码(大小写字母和数字)
  8. pat甲级1085
  9. php5.5.15注释问题PHP Deprecated: Comments starting with &#39;#&#39; are deprecated in *.ini 警告解决办法
  10. [转载]——Axure+SVN配置