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

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

    This seems to work beautifully (trust me, try it):

    /* Restore Browser's Default Submit Button Style */
    input[type=submit] {
        background:ButtonFace; 
        color:ButtonText; 
        border:2px outset ButtonFace;
    }
    input[type=submit]:active {
        border-style:inset; 
        -webkit-appearance:push-button;
    }
    

提交回复
热议问题