简体   繁体   English

Internet Explorer 7中css链接和背景的奇怪问题

[英]Strange issue with link and background in css in Internet Explorer 7

I have a file with the following css/html and for some reason the only time the link will work is if I apply a color to the background of the A tag. 我有一个带有以下css / html的文件,由于某种原因,链接唯一有效的时间是我将颜色应用于A标签的背景。 I am using this link as an overlay to trigger some other animations in JavaScript. 我使用此链接作为叠加来触发JavaScript中的其他动画。 This has me stumped, even the border is clickable but not inside unless background is applied. 这让我很难过,即使边框是可点击的,但除非应用背景,否则不在里面。

<a id="domo-action" href="#wrapup-video" class="secret yum" data-yummy="9">click for domo</a>

a#domo-action {
  display: block;
  height: 180px;
  left: 0;
  position: absolute;
  text-indent: -9999px;
  top: 20px;
  width: 188px;
  z-index: 999;
  cursor: pointer;
  border: 1px solid #999;
  background: transparent;
}   

如果我没记错的话,解决方法是将透明的blank.gifbackground-image

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM