css - Internet Explorer 水平结尾导航位置不正确

标签 css internet-explorer

整个图像在 Firefox/Chrome/Safari 中是可点击的,但在 Internet Explorer 中,它只能在图像右侧点击。

http://www.dawaf.co.uk/cthm/work/

Javascript

<script type="text/javascript">
  $().ready(function() {
    $(".slider1").codaSlider( {dynamicArrows: false, dynamicTabs: false} );        $(".slider1 .coda-nav-right-wrapper").mouseover(function() {
      $(".nav1").css("display","block");
    });
    $(".slider1 .coda-nav-right-wrapper").mouseout(function() {
      $(".nav1").css("display", "none");
    });
    $("#coda-nav-right-1 > a > .coda-nav-right-wrapper").mouseover(function() {
      $(".caption1").css("display", "inline");
    });         

    $("#coda-nav-right-1 > a > .coda-nav-right-wrapper").mouseout(function() {
      $(".caption1").css("display", "none");
    });
  });
</script>

CSS

#content .coda-nav-right-wrapper {
  display: block;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 40;
  width: 900px;
  height: 450px;
  cursor: pointer;
}

最佳答案

你有一个 block 级元素 <div>在内联元素中 <a> .这在语义上对 IE 无效。所以,给出 display: block;float: left;对于 <a>标记,修复它。

关于css - Internet Explorer 水平结尾导航位置不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14479365/

相关文章:

windows - 如何使用命令终止上次打开的 Internet Explorer 窗口?

html - 使用html、css创建一个看起来很像的google搜索页面

html - AngularJS:一个 index.html 中的注册和内容页面

具有动态大小的 CSS Sprites

internet-explorer - border-radius 在 I.E 8 的选择规则中工作,为什么?

css - IE9 CSS 通用选择器优先于直接选择器

c# - 如何使用C#(.Net 3.5)将JavaScript代码发送到IE,运行它,然后从JS代码中获取字符串返回值?

html - Internet Explorer 不同的字体大小

html - Bootstrap 3 <select> 将下拉箭头向左移动并更改其 block 的颜色

html - Textarea 需要省略号而不是自动换行