简体   繁体   English

如何增加字母间距以下拉选项?

[英]How to add letter spacing to drop down options?

I would like to add letter spacing to the drop down options. 我想在下拉选项中添加字母间距。 Only the highlighted text seems to be working fine not the options. 只有突出显示的文本似乎可以正常工作,而不是选项。

[ [ 屏幕截图 ] ]

Here is my code: 这是我的代码:

.uDDL select
{
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: 'HelveticaNeue LT 47 LightCn', 'HelveticaLightCondensed', Sans-         Serif;
    top: 11px;
    right: 15%;
    border: 0px;
    outline: 0px;
    font-size: 22px;
    letter-spacing: 1px;
    position: absolute;
    cursor: pointer;
    display: inline-block;
    height: 29px;
    width: 296px;
    background: transparent;
    padding-left: 39px;
}
.DDL select::-ms-expand {
    display: none;
}
.uDDL option 
{
    font-family: HelveticaLightCondensed;
    font-weight: bold;
    letter-spacing: 1px;
    background: white;
    text-align: center;
}

You are most likely not calling the elements correctly so try to check your css combination again. 您很可能没有正确调用元素,因此请尝试再次检查CSS组合。 Also if you want more help, post your CSS and HTML code along with anything that you have tried. 另外,如果您需要更多帮助,请发布您的CSS和HTML代码以及尝试过的所有内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM