开发者

ui-icon buttons with no text don't show in IE7

I'm using JQuery-UI in my app. I'm using the ui-icon buttons as links to actions that apply to items shown in rows in a table. They work fine in all the bro开发者_JS百科wsers but IE 7.

See this example.

http://jsfiddle.net/CsNJa/

It works in IE 8 but not 7


One solution is to perform the following changes to the elements.

        if ($.browser.msie && parseInt($.browser.version) == 7) {
            $(this).removeClass("ui-button");
            $(this).css("float", "left");
            $(this).css("margin-left", "3px");
        }

The margin is not really necessary. I just happen to have several buttons in a row.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜