zoukankan      html  css  js  c++  java
  • 关于a标签下的img元素在IE7下不能点击的问题

    转载自http://segmentfault.com/q/1010000000712673
    <!
    DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>test</title> <style type="text/css"> .u-cover { position: relative; width: 225px; height: 204px; float: left; margin: 20px 0 0 20px; background-color: #fff; } .wrap { overflow: hidden; width: 100%; height: 100%; display: block; position: relative; } .img { padding: 1px 1px 0; height: 124px; width: 223px; position: relative; } .pic { position: relative; overflow: hidden; height: 124px; width: 100%; } .j-imgArea { width: 223px; height: 124px; } </style> </head> <body> <a target="_blank" class="j-hrf wrap" href="http://image.baidu.com/"> <div class="img"> <div class="pic"> <img class="j-imgArea" src="http://img0.bdstatic.com/img/image/shouye/dmhzw002.jpg"> <div class="planflag"></div> </div> </div> </a> </body> </html>

    主要的问题就是在IE7的时候图片不能点击,现在找到的解决的方法就是给

    .img 还有.pic设置了hack为*display: inline;现在就是不知道这原因是什么呢?

  • 相关阅读:
    swap函数的例子
    实现类似shared_ptr的引用计数
    使用new分配内存的类需要自己定义拷贝构造函数
    练习13.14 13.15 13.16
    查询单词,综合例子。
    无序容器
    关联容器操作
    关联容器概述
    文本查询程序
    shared_ptr与weak_ptr的例子
  • 原文地址:https://www.cnblogs.com/hesitate/p/4419432.html
Copyright © 2011-2022 走看看