如何使用jQuery UI的Highlight和Error小部件? [英] How do I use jQuery UI's Highlight and Error widgets?

查看:62
本文介绍了如何使用jQuery UI的Highlight和Error小部件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jQuery UI 具有一些用于警告和突出显示的便捷CSS样式.我可以在 themeroller网站上看到它-在右侧.这些样式是否有Javascript接口?我们是否使用硬编码的CSS?在哪里记录?

jQuery UI has some nice convenient CSS styles for alerting and highlighting. I can see it at the themeroller site -- look on the right hand side. Is there a Javascript interface to these styles? Do we use hard-coded CSS? Where is this documented?

除了jQuery UI上的交互式文档之外,是否还有方法列表,作弊工具或其他内容?

Is there method list, a cheatsheat, or anything other than the interactive docs on jQuery UI?

推荐答案

UI/主题/API 页: .ui-state-highlight (突出显示), .ui-state-error (错误).您可以静态执行,也可以使用.addClass('ui-state-highlight').addClass('ui-state-error')动态执行.

Apply the appropriate CSS classes for the desired interaction cue from the UI/Theming/API page: .ui-state-highlight for highlight and .ui-state-error for error. You can do it statically or use .addClass('ui-state-highlight') or .addClass('ui-state-error') to do it dynamically.

这篇关于如何使用jQuery UI的Highlight和Error小部件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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