gpt4 book ai didi

html - 自定义下拉列表箭头

转载 作者:行者123 更新时间:2023-11-28 07:04:42 25 4
gpt4 key购买 nike

我想创建一个下拉列表,但我需要箭头始终可见并根据您在此处看到的内容进行自定义:

https://jsfiddle.net/d388daek/

对于数字输入字段,我怎样才能添加向上箭头,是否可以使用 作为 HTML 字符实体而不是箭头?

最佳答案

HTML

.styleSelect select {
background: transparent;
width: 168px;
padding: 5px;
font-size: 16px;
line-height: 1;
border: 0;
border-radius: 0;
height: 34px;
/* -webkit-appearance: none; */ /*This line hides the arrow completely*/
color: #000;
border-color: rgb(169, 169, 169);
}

.styleSelect {
width: 140px;
height: 34px;
border: 2px solid #000;
border-color: rgb(170, 170, 170);
}
<div class="styleSelect">
<select class='regularcolor'>
<option>one</option>
<option>two</option>
</select>
</div>
<div class="styleSelect">
<select class='offcolor'>
<option>one</option>
<option>two</option>
</select>
</div>

试一试,您显然可以对其进行更多自定义,使其看起来像某种方式。希望这会有所帮助。

关于html - 自定义下拉列表箭头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33027001/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com