开发者

Link disappears in IE 6 and 7

I have link (button actually) inside a TD, but its completely hidden in IE 6 and 7:

.btn-delete {
    position: relative;
    width: 32px;
    height: 31px;
 开发者_开发知识库   text-indent: -1000em;
    background:#dd0 url(../img/button.png) no-repeat;
    /*.float: left;*/
    display: inline-block;
    display: -moz-inline-box;
    -moz-box-orient: vertical;
    vertical-align: top;
    zoom: 1;
    *display: inline;
}

...but if I add float:left to it, it shows fine. How do I fix it?

Many thanks!


Unfortunately, it appears that the text-indent is what is causing this behavior.

In the past, I've used an image button with the value set to the same value as the original button, with a transparent image so that the background image can be used:

<input type="image" class="btn-delete" value="Delete" src="spacer.gif" />

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜