各位同仁,最近项目中遇到兼容的问题很让人痛疼,IE7,IE8 Forfox 都要兼容,CSS调式带来了很大的困惑
下面是一段HTML 代码
问题在IE7下点击连接没有任何反应 div A 连接生效
这段代码在IE8和Forfox 都是没有问题的.
这一段HTML 代码保存到数据库当中:数据量很多,最好不要直接在上面做修改
请高手指点....感激不尽..谢谢.
<html>
<head>
<style type="text/css">
div.img
{
margin:2px;
border:1px solid #0000ff;
height:500;
width:500;
float:left;
text-align:center;
}
div.img img
{
display:inline;
margin:3px;
border:1px solid #ffffff;
}
div.img a:hover img
{
border:1px solid #0000ff;
}
div.desc
{
text-align:center;
font-weight:normal;
width:120px;
margin:2px;
}
div.inner{
height:200;
width:160;
border:1px solid #0000ff;
}
</style>
</head>
<body><div class="img" >
<a target="_blank" href="http://www.w3school.com.cn/index.html" >
<div class="inner" id="A">
<img src="klematis_small.jpg" alt="Klematis" width="110" height="90" src="http://www.w3school.com.cn/index.html"/>
</div>
</a>
<div class="desc">Add a description of the image here</div>
</div>
</body>
</html>
下面是一段HTML 代码
问题在IE7下点击连接没有任何反应 div A 连接生效
这段代码在IE8和Forfox 都是没有问题的.
这一段HTML 代码保存到数据库当中:数据量很多,最好不要直接在上面做修改
请高手指点....感激不尽..谢谢.
<html>
<head>
<style type="text/css">
div.img
{
margin:2px;
border:1px solid #0000ff;
height:500;
width:500;
float:left;
text-align:center;
}
div.img img
{
display:inline;
margin:3px;
border:1px solid #ffffff;
}
div.img a:hover img
{
border:1px solid #0000ff;
}
div.desc
{
text-align:center;
font-weight:normal;
width:120px;
margin:2px;
}
div.inner{
height:200;
width:160;
border:1px solid #0000ff;
}
</style>
</head>
<body><div class="img" >
<a target="_blank" href="http://www.w3school.com.cn/index.html" >
<div class="inner" id="A">
<img src="klematis_small.jpg" alt="Klematis" width="110" height="90" src="http://www.w3school.com.cn/index.html"/>
</div>
</a>
<div class="desc">Add a description of the image here</div>
</div>
</body>
</html>
解决方案 »
- 谁有html5对应的javascript手册?
- 请教 使用canvas, svg 或 vml画图的基本流程
- VS2008中的智能弹出有说明吗?
- 用什么来画矢量线使得IE和FF都可以支持(不需要另外的插件)
- JS 操作 DOM 的问题!
- 不是问题的问题
- 我在web有一个JS菜单,现在我在傍边放了flash,然后菜单被挡住了,怎么解决?
- 学习JAVASCRIPT哪位大哥能给推荐几本书
- void(0)什么意思!vSrc = window.event.srcElement;什么意思一定要说说event对象的意义和内容
- jquery获取不了新插入的节点
- 百度地图公交查询的 api 【求助高手】(要分的就别进了)
- javascript没有效果
<meta http-equiv="x-ua-compatible" content="ie=7" />看看行不行!
下图是要求的效果,点击图片区域(图中1的区域)和点击外层区域(图中2的区域) 都可以弹出一个连接出来
现在是IE8 和 Forfox 可以工作, IE7 下点击图片区域([color=#FF6600]图中1的区域)不能弹出
点击外层区域可以弹出[/color]
2.现在是IE8和Forfox 没有问题,只有在IE7上点击图片连接没有任何反应,点击外层连接是可以的..