如何更改 jquery ui 组合框和下拉列表中的字体 我的代码是:
.ui-autocomplete-input {
margin: 0;
padding: 0.3em;
font-family:"Times New Roman", Times, serif;
}
.ui-autocomplete
{
font-family:"Times New Roman", Times, serif;
max-height: 200px;
overflow-y: auto;
/* prevent horizontal scrollbar */
overflow-x: hidden;
/* add padding to account for vertical scrollbar */
z-index:1000;
}
但没有任何改变我不知道错误在哪里
最佳答案
试试这个:
.ui-menu .ui-menu-item {
font-family:"Times New Roman", Times, serif;
}
关于jquery - 更改 jquery ui 组合框字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11690247/