How to change the font size of the list (not the initial view)

前端 未结 6 1366
青春惊慌失措
青春惊慌失措 2020-12-19 10:39

I have set a custom font and background for the initial view of the dropdown list (Select a choice). The font-size is 20 pixels and looks great with the custom

6条回答
  •  情书的邮戳
    2020-12-19 11:01

    In chrome try adding background: white; to the class Select. By setting the background to white Chrome also followed the rest of my specifications such as height and font.

    .yourselectclass select {
        background: white;
        font-size: 16px;
        margin-left: 5px;
        font-family: 'Cabin', sans-serif;
        height: 30px;
        width: 88px;
    }
    

提交回复
热议问题