样式化 JQuery UI 自动完成 [英] Styling JQuery UI Autocomplete

查看:31
本文介绍了样式化 JQuery UI 自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

小提琴

我正在尝试为 AutoComplete 中的部分设置样式,但我不知道在 CSS 中这些部分放什么.我特别想制作:

I'm trying to style the sections inside the AutoComplete, but I don't know what to put in the CSS for the sections. I'm specifically trying to make:

color: #96f226;
border-radius: 0px;
border: 1px solid #454545;

有什么建议???

推荐答案

您在寻找这个选择器吗?:

Are you looking for this selector?:

.ui-menu .ui-menu-item a{
    background:red;
    height:10px;
    font-size:8px;
}

丑陋的演示:

http://jsfiddle.net/zeSTc/

只需替换为您的代码:

.ui-menu .ui-menu-item a{
    color: #96f226;
    border-radius: 0px;
    border: 1px solid #454545;
}

演示:http://jsfiddle.net/w5Dt2/

这篇关于样式化 JQuery UI 自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆