Any way to remove IEs black border around submit button in active forms?

后端 未结 18 1893
南笙
南笙 2020-11-28 22:57

I am implementing a design that uses custom styled submit-buttons. They are quite simply light grey buttons with a slightly darker outer border:

input.button         


        
18条回答
  •  爱一瞬间的悲伤
    2020-11-28 23:35

    I was able to combine David Murdoch's suggestion with some JQuery such that the fix will automatically be applied for all 'input:submit' elements on the page:

    // Test for IE7.
    if ($.browser.msie && parseInt($.browser.version, 10) == 7) {
                $('')
    .insertBefore("input:submit");
            }
    

    You can include this in a Master Page or equivalent, so it gets applied to all pages in your site.

    It works, but it does feel a bit wrong, somehow.

提交回复
热议问题