如何从自动完成中删除项目符号和下划线 [英] How to remove bullets and underline from auto complete

查看:121
本文介绍了如何从自动完成中删除项目符号和下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用jquery和Web服务自动完成了.自动完成显示有项目符号和下划线.

I did autocomplete using jquery and web service. Auto complete is showing with bullets and underline.

如何删除它?

推荐答案

您可以通过添加CSS轻松地做到这一点

You can easily do this by adding a css

list-style-type: none;

要删除下划线,请使用

text-decoration: none;

或者您可以使用 jquery

$('.ui-autocomplete').css('list-style-type', 'none');
$('.ui-autocomplete').css('text-decoration', 'none');

这篇关于如何从自动完成中删除项目符号和下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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