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

后端 未结 10 1059
忘掉有多难
忘掉有多难 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:18

    For Firefox you can find the default form styles by typing resource://gre/res/forms.css into the address bar, which does at least give you the details of the default style for an input button so that you can then copy them and override using a !important rule.

    It's not entirely satisfactory though as the default style could of course change with a future version of the browser and the default style for different browsers might be different.

提交回复
热议问题