`
kokorodo
  • 浏览: 37473 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

jQuery UI的CSS框架

 
阅读更多

jQuery UI的CSS框架设计得非常鲁棒方便用于定制用户界面控件。框架包括很多适合多数用户界面需要的CSS类,这些类能用jQuery UI ThemeRoller来所见即所得地修改。如果你的控件也采用本框架,你的控件就可以和社区的其它大量控件或者代码更容易地集成。
框架类

The following CSS classes are split between ui.core.css and ui.theme.css, depending on whether styles are fixed and structural, or themeable (colors, fonts, backgrounds, etc) respectively. These classes are designed to be applied to User Interface elements to achieve visual consistency across an application and allow components to be themeable by jQuery UI ThemeRoller.
Layout Helpers布局辅助类
.ui-helper-hidden: 让元素不显示(display: none).
.ui-helper-hidden-accessible: 将位置设置到屏幕之外让元素看不见(但不是display:none)
.ui-helper-reset: 清除一些基本的样式属性比如padding, margins, text-decoration, list-style等.
.ui-helper-clearfix: Applies float wrapping properties to parent elements
.ui-helper-zfix: Applies iframe "fix" css to iframe elements when needed in overlays.
Widget Containers控件容器
.ui-widget: 所有那些控件的最外层容器元素必须包括此类. Applies font family and font size to widget. Also applies same family and 1em font size to child form elements specifically, to combat inheritance issues in Win browsers.
.ui-widget-header: 应用于控件头Class to be applied to header containers. Applies header container styles to an element and its child text, links, and icons.
.ui-widget-content: 应用于控件内容Class to be applied to content containers. Applies content container styles to an element and its child text, links, and icons. (can be applied to parent or sibling of header)
Interaction States界面状态
.ui-state-default: 所有clickable的元素的缺省状态Class to be applied to clickable button-like elements. Applies "clickable default" container styles to an element and its child text, links, and icons.
.ui-state-hover: 所有clickable的元素在鼠标移动其上的状态Class to be applied on mouseover to clickable button-like elements. Applies "clickable hover" container styles to an element and its child text, links, and icons.
.ui-state-focus: 所有clickable的元素的获取到键盘焦点的状态Class to be applied on keyboard focus to clickable button-like elements. Applies "clickable hover" container styles to an element and its child text, links, and icons.
.ui-state-active: 所有clickable的元素当鼠标在其上按下但未弹起时的状态Class to be applied on mousedown to clickable button-like elements. Applies "clickable active" container styles to an element and its child text, links, and icons.
Interaction Cues界面提示
.ui-state-highlight: 所有可进行选择的元素被选择上的或者高亮的状态Class to be applied to highlighted or selected elements. Applies "highlight" container styles to an element and its child text, links, and icons.
.ui-state-error: 应用于显示错误消息的容器元素Class to be applied to error messaging container elements. Applies "error" container styles to an element and its child text, links, and icons.
.ui-state-error-text: 额外的类用于显示错误文本(不包括背景)An additional class that applies just the error text color without background. Can be used on form labels for instance. Also applies error icon color to child icons.
.ui-state-disabled: 应用于那些被禁用的用户界面元素Applies a dimmed opacity to disabled UI elements. Meant to be added in addition to an already-styled element.
.ui-priority-primary: 应用于第一优先级的按钮Class to be applied to a priority-1 button in situations where button hierarchy is needed. Applies bold text.
.ui-priority-secondary: 应用于第二优先级的按钮Class to be applied to a priority-2 button in situations where button hierarchy is needed. Applies normal weight text and slight transparency to element.
Icons图标
States and images状态和图片
.ui-icon: 图标元素的基本类Base class to be applied to an icon element. Sets dimensions to 16px square block, hides inner text, sets background image to "content" state sprite image. Note: .ui-icon class will be given a different sprite background image depending on its parent container. For example, a ui-icon element within a ui-state-default container will get colored according to the ui-state-default's icon color.
Icon types

After declaring a ".ui-icon" class, you can follow up with a second class describing the type of icon you'd like. Icon classes generally follow a syntax of .ui-icon-{icon type}-{icon sub description}-{direction}.

For example, a single triangle icon pointing to the right looks like this: .ui-icon-triangle-1-e

jQuery UI's ThemeRoller provides the full set of CSS framework icons in its preview column. Hover over them to see the class name.
Misc Visuals
Corner Radius helpers
.ui-corner-tl: Applies corner-radius to top left corner of element.
.ui-corner-tr: Applies corner-radius to top right corner of element.
.ui-corner-bl: Applies corner-radius to bottom left corner of element.
.ui-corner-br: Applies corner-radius to bottom right corner of element.
.ui-corner-top: Applies corner-radius to both top corners of element.
.ui-corner-bottom: Applies corner-radius to both bottom corners of element.
.ui-corner-right: Applies corner-radius to both right corners of element.
.ui-corner-left: Applies corner-radius to both left corners of element.
.ui-corner-all: Applies corner-radius to all 4 corners of element.
Overlay & Shadow
.ui-widget-overlay: Applies 100% wxh dimensions to an overlay screen, along with background color/texture, and screen opacity.
.ui-widget-shadow: Class to be applied to overlay widget shadow elements. Applies background color/texture, custom corner radius, opacity, top/left offsets and shadow "thickness". Thickness is applied via padding to all sides of a shadow that is set to match the dimensions of the overlay element. Offsets are applied via top and left margins (can be positive or negative).

分享到:
评论

相关推荐

    sjqzhang#webtech#jQuery UI CSS 框架 API1

    框架类下面的 CSS 类根据样式是否是固定的结构化的,或者是否是可主题化的(颜色、字体、背景等),分别定义在 ui.core.css 和 ui.theme.cs

    Bootstrap与jQuery UI框架设计(前端开发工程师系列)

    2 jQuery Mobile UI组件 2.1 网格系统 2.2 格式化内容 2.3 可折叠的内容 2.4 工具栏 操作案例3:制作影视介绍页面 2.5 按钮 操作案例4:制作音乐播放器页面 本章总结 本章作业 第6章jQuery Mobile基础 1 列表 1.1 整...

    jquery-UI-框架

    一个非常不错的Jquery富客户端!html,div+css

    MVC快速开发框架

    CSS框架:Bootstrap v3.3.4(稳定是后台,UI方面根据需求自己升级改造吧)。 客户端验证:jQuery Validation Plugin 1.9.0。 在线编辑器:ckeditor、simditor 上传文件:Uploadify v3.2.1 动态页签:Jerichotab...

    关于jQuery-Ui的引用文件

    jQuery-Ui,本地可直接引用,包括三个引用: 1)css样式 2)js 3)js-ui主题

    NFine快速开发框架.rar

    CSS框架:Bootstrap v3.3.4(稳定是后台,UI方面根据需求自己升级改造吧)。 客户端验证:jQuery Validation Plugin 1.9.0。 在线编辑器:ckeditor、simditor 上传文件:Uploadify v3.2.1 动态页签:Jerichotab...

    Jquery ui css framework

    Jquery ui css framework是jquery ui中的一个样式框架,可以利用jquery Theme roller 来生成自己想要的css样式效果。我们可以利用jquery ui的一些框架来开发出基于jquery ui css framework效果的插件来。

    GC jQuery UI theme switcher:jQuery插件提供了一个jQuery UI对话框来更改UI主题CSS-开源

    jQuery UI CSS框架的主题切换器工具。 使用jQuery UI对话框更改css样式表,您可以使用按钮或html页面中的链接调用该对话框。 在您的网站空间中完全实现。

    基于jQuery UI CSS Framework开发Widget的经验

    jQuery UI CSS Framework是jQuery UI中的一个样式框架,可以利用jQuery Theme roller 来生成自己想要的css样式效果。我们可以利用jQuery UI的一些框架来开发出基于jQuery UI CSS Framework效果的插件来。

    NFine快速开发框架源码 NFineRapidFramework.rar

    CSS框架:Bootstrap v3.3.4(稳定是后台,UI方面根据需求自己升级改造吧)。 客户端验证:jQuery Validation Plugin 1.9.0。 在线编辑器:ckeditor、simditor 上传文件:Uploadify v3.2.1 动态页签:Jerichotab...

    HTML+CSS+JavaScript+jQuery+Bootstrap等前端框架实现的前端案例.zip

    HTML+CSS+JavaScript+jQuery+Bootstrap等前端框架实现的前端案例.zip

    Jquery UI Customer-1.10.3

    Jquery UI-1.10.3 不费话了 你都懂得

    最新jQuery UI 1.7

    * 新的网站,致力于jQuery UI的项目 * 兼容 jQuery 1.3 * 插件的修改和优化 * 可扩展的新CSS框架 * 增加了Themeroller 主题的应用 * 演示和文档的更新 * 提供离线文档

    jQuery UI Bootstrap是什么?

    jQuery UI Bootstrap是一个将jQuery UI集成到Bootstrap上的CSS框架,jQuery UI Bootstrap不仅可以利用jQuery UI强大的控件库,同时还可以享受Bootstrap那种清新自然的主题风格,所以越来越多的前端开发者都在使用...

    jQuery JavaScript与CSS开发入门经典

    《jQuery JavaScript与CSS开发入门经典》还介绍jQuery UI库的用法,指导您使用jQuery UI库创建赏心悦目的专业用户界面。书中包含极富启迪意义的指南和紧贴实际的练习,以引导读者在实际中得心应手地使用jQuery。

    移动端基于jqueryzepto的UI组件库

    移动端基于jquery,zepto的UI组件库,目前实现 JS Components:Toast、Action、Tips、Dialog、Swiper、CityPicker、DatetimePicker、Tab、Range Css Component:oneborder、Loading、button 等

    jQuery前端UI框架表单样式代码.zip

    非常实用的特效代码,可以完美运行,可以二次修改!

    H-ui.admin 前端框架

    H-ui.admin是用H-ui前端框架开发的轻量级网站后台模版 采用源生html语言,完全免费,简单灵活,兼容性好 让您快速搭建中小型网站后台 程序员的的福音 \根目录 │ _blank.html 空白页(每次我们都拿空白页去创建,...

    JQuery UI 1.7

    关于JQuery UI设计的书,本书详细介绍了各个控件的使用(css框架、标签、对话框、滑动条、日历控件、进度条、拖放效果、主题调色,各种特效......)。

Global site tag (gtag.js) - Google Analytics