当前位置:网站首页>Modify the select style
Modify the select style
2022-07-19 07:49:00 【guizi0809】
select Default style
Take Google browser for example
<select>
<option value="1"> Apple </option>
<option value="2"> Snow pear </option>
<option value="3"> Peach </option>
<option value="4"> strawberry </option>
</select>

select Change the default style
select {
width: auto;
border: 1px solid #e5e5e5;
outline: none; /* Remove ugly thick black lines */
padding: 4px 24px 4px 10px;
font-size: 16px;
}
option {
/* You can set the background color and font color */
color: #ea5400;
font-size: 14px;
}
option:hover {
/* All invalid */
}
option:checked {
color: #fff;
background: rgb(128, 64, 99);
}
design sketch :
You can give select Label use appearance: none Hide the drop-down arrow , And use the absolute positioning custom drop-down arrow to achieve the beautification effect
It is recommended to use div The label realizes the drop-down box effect , This is more controllable
边栏推荐
猜你喜欢

Flink introduction to practice - phase II (illustrated runtime architecture)

微信OAuth2.0 登录流程以及安全性分析

175. 组合两个表(MySQL数据库连接)

4-channel fmc+ baseband signal processing board (4-channel 2G instantaneous bandwidth ad+da)

Flutter3.0(framework框架)——UI渲染

@ConditionalOnMissingBean 如何实现覆盖第三方组件中的 Bean

Review of 4705 NLP

nodejs

Xiaodi network security note information collection CDN bypass technology (7)

Solve MySQL (1064) error: 1064 - you have an error in your SQL syntax;
随机推荐
High concurrency day04 (Zab protocol, observer, NC, Avro, RPC)
Review of 4705 NLP
传递多图片,是空情况的判断。
59 get prototype size
Introduction to arm development environment
Jenkins 忘记密码怎么办?
一刻钟读懂gPTP
Flowable query, complete, void, delete tasks
Export file or download file
Notepad++ underline and case letter replacement
卷积神经网络CNN
[operation rules] how to realize TSN system level test?
TSN security protocol (802.1qci)
Transferring multiple pictures is the judgment of empty situation.
Download, installation and use of mongodb
fiddler 抓包工具使用
4-channel fmc+ baseband signal processing board (4-channel 2G instantaneous bandwidth ad+da)
Discussion on blackmail virus protection
RNN卷积神经网络
FreeBSD 12 installing RPM packages