Text size for drop down menu/input select not working in Safari

后端 未结 12 1622
说谎
说谎 2021-02-19 00:17

First question...

I\'m having trouble getting ANY of the Drop down menu/Input Select\'s to appear with size 18 font in Safari.

Works fine in FF.

Code:

12条回答
  •  醉酒成梦
    2021-02-19 00:51

    The select technically isn't an input tag. Try assigning a class to your select and set the style for the class.

    EDIT: Turns out that Aqua style selects only have three different font sizes available. If you need to set an exact font size, you can turn off Aqua by giving the item a background color, then set the size. FYI, it appears that 20px works without setting the background so it must size up to the next supported Aqua size.

    Reference: http://particletree.com/notebook/design-friendly-select-elements-in-safari-3/. Test page with various styles at http://particletree.com/examples/safari3/drop.html.

     
    
    
     .big-input
     {
         background: #fff; // turns off Aqua
         font-size: 18pt; // assuming you meant 18pt, not 18px
         margin-bottom: 0px;
     }
    

提交回复
热议问题