Reverting CSS style of <input type=submit button to its default style

后端 未结 10 1103
忘掉有多难
忘掉有多难 2020-12-05 14:40

I\'m using a bookmarklet that inserts a script tag into the current web page.

This script has some UI and an \"input type=submit....\" tag in it.

<
10条回答
  •  渐次进展
    2020-12-05 15:20

    What i've done and it seems to work in all browsers is...

    $(buttonID).css({
    'background-color':''
    });
    

    by just leaving the background-color empty it seems to revert the button to its default state.

提交回复
热议问题