鬼火飘荡

导航

 
转载自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;现在就是不知道这原因是什么呢?

posted on 2015-04-12 13:53  鬼火飘荡  阅读(211)  评论(0编辑  收藏  举报