CSS: How to increase the size of a OSX submit button

后端 未结 8 1803
我寻月下人不归
我寻月下人不归 2021-01-11 12:28

How do I increase the native FORM submit button size for OSX-Safari?

I want to keep the native look of a FORM submit button for it\'s r

相关标签:
8条回答
  • 2021-01-11 12:50

    I am using several input type="button" and they style ok using:

    input[type="button"] {
    -webkit-appearance: button;
    height:40px;
    }
    

    They did not style without the -wbkit- line.

    0 讨论(0)
  • 2021-01-11 12:53

    If you apply a border to the button, Safari abandons it's glossy button and you can do what you like with it.

    0 讨论(0)
  • 2021-01-11 12:53
    input.submitbutton{
        width:200px;
        height:500px;
    }
    

    Seems obvious, but have you tried changing the element size instead of the font size?

    0 讨论(0)
  • 2021-01-11 12:56

    Safari's form buttons are notoriously hard to style (if not impossible).

    As others have said, height is pretty much untouchable.

    What you can do is set the font size to an exact pixel size to resize the button.

    input.submitbutton {font-size:14px;}
    

    That should make the font size larger and the button as well. It does max out though...you can't just keep increasing the font size.

    0 讨论(0)
  • 2021-01-11 12:57

    Try to include this CSS property on your style:

    -webkit-appearance: button;

    Hope this helps!

    0 讨论(0)
  • 2021-01-11 12:57

    or use the <button> tag. Particletree! Rediscovering the Button Element

    0 讨论(0)
提交回复
热议问题