jqGrid 问题笔记

JQuery UI Theming/API

marz posted @ Aug 11, 2010 07:19:10 AM in js-libraries with tags jquery them api css , 2370 readers



From jQuery JavaScript Library

Jump to: navigation, search

« Back to jQuery UI Theming


  • 1 The jQuery UI CSS Framework


The jQuery UI CSS Framework

jQuery UI includes a robust CSS Framework designed for building custom jQuery widgets. The framework includes classes that cover a wide array of common user interface needs, and can be manipulated using jQuery UI ThemeRoller. By building your UI components using the jQuery UI CSS Framework, you will be adopting shared markup conventions and allowing for ease of code integration across the plugin community at large.


Framework Classes

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: Applies display: none to elements.
  • .ui-helper-hidden-accessible: Applies accessible hiding to elements (via abs positioning off the page)
  • .ui-helper-reset:  A basic style reset for UI elements. Resets things such as padding, margins, text-decoration, list-style, etc.
  • .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: Class to be applied on outer container of all widgets. 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: 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: 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: 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: 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.




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).


源文档 <http://docs.jquery.com/UI/Theming/API>

Felix said:
May 27, 2021 05:24:38 PM

This is very beneficial for IT peoples like me. The purpose of jQuery is to make it much easier to use JavaScript. Hemp Farming This data provided helped me to learn more about UI/Theming/API and hence improve my knowledge. Thanks for sharing.

zaiya said:
Sep 11, 2021 12:48:21 PM

Thanks a lot for sharing this with me. It was just a new thing for me to know about this one. clippingpathphotoediting.com It is good for me to know all these things from here. I hope it is a good thing for all.

Jasper said:
Oct 12, 2021 11:08:05 PM

Excellent, I’ll bookmark your blog and take the feeds also. get full spectrum cbd I’m happy to find so much useful info here in the post, we need to work out more techniques in this regard, thanks for sharing.

rose said:
Aug 30, 2022 10:40:12 PM

I’m so happy to find this website this Restaurant POS Software Dubai is really helpful for me to understand regarding the Jquery JavaScript. There will be many students who have no idea about the programming language that is provided in this website and if you have any doubts you can contact the technical support team for the assistance

mtom said:
Dec 11, 2022 02:07:25 PM

Made to measure curtains… [...]check out the sites listed below, worth a read for interiors and rugs enthusiasts[...]… Facboook

mtom said:
Dec 11, 2022 05:44:47 PM

I dugg some of you post as I cerebrated they were very beneficial extremely helpful 파워볼

mtom said:
Dec 11, 2022 08:53:50 PM

i don’t like razors so i always use hair clippers to cut my hair., 슬롯사이트

mtom said:
Dec 16, 2022 02:19:53 PM

Youre so cool! I dont suppose Ive read anything this way just before. So nice to seek out somebody with a few original thoughts on this subject. realy thanks for beginning this up. this web site is one thing that is needed on the net, someone with some originality. helpful project for bringing something totally new towards the web! Coin Market Cap Listing

vv said:
Dec 17, 2022 02:03:27 PM

Merely  wanna  input that you have a very nice    web site , I  love  the  pattern  it  actually stands out. 슬롯사이트 추천

https://portbrd.pl said:
Dec 17, 2022 07:12:08 PM

you can always say that Kanye West is a good singer but he will never be as good as michael jackson;

mtom said:
Dec 19, 2022 03:10:23 PM

There is noticeably a bundle to learn about this. I assume you made certain good points in features also. Exness Review

sl said:
Dec 21, 2022 09:00:51 PM

Sometimes your blog is loading slowly, better find a better host.~*”;: slot international =====================Some really   good   articles  on this website  ,  thankyou  for contribution. 안전놀이터

mtom said:
Dec 23, 2022 07:52:32 PM

Heya i am for the primary time here. I found this board and I to find It really useful & it helped me out much. I hope to offer one thing again and help others such as you aided me. digital alarm clock

mtom said:
Dec 24, 2022 06:07:30 PM

I am glad that I noticed this web blog, precisely the right info that I was looking for! Whole Melt Extracts Live Resin

mtom said:
Dec 25, 2022 06:41:10 PM

When visiting blogs. i always look for a very nice content like yours “    Situs Slot Gacor

mtom said:
Dec 26, 2022 08:43:04 PM

Thanks for your recommendations on this blog. One thing I want to say is that purchasing electronic products items over the Internet is not something new. The fact is, in the past several years alone, the marketplace for online electronic devices has grown noticeably. Today, you’ll find practically any kind of electronic device and tools on the Internet, ranging from cameras and also camcorders to computer elements and video games consoles. Software keys

globalcrentist.com said:
Dec 28, 2022 02:41:38 PM

Heya this is a good write-up. I’m going to mail this to my buddies. I came on this while browsing on aol I’ll be sure to come back. thanks for sharing.

gruas urzua said:
Dec 28, 2022 04:54:25 PM

Hi there, You have done an incredible job. I’ll certainly digg it and in my opinion suggest to my friends. I am sure they will be benefited from this website.

situs slot gacor said:
Dec 28, 2022 06:48:51 PM

Wow, incredible blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your site is excellent, as well as the content!

mtom said:
Dec 28, 2022 11:56:49 PM

Hi there this is kinda of off topic but I was wondering if bloger use editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience. Any help would be greatly appreciated! buy google reviews cheap

Everything You Need said:
Dec 29, 2022 02:06:28 PM

Nice post. I learn some thing harder on various blogs everyday. Most commonly it is stimulating to study content from other writers and exercise a specific thing from their site. I’d opt to apply certain using the content in my small weblog regardless of whether you do not mind. Natually I’ll provide link for your internet weblog. Thanks for sharing.

메이저사이트 said:
Dec 29, 2022 04:10:09 PM

it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information.

Feeding mum said:
Dec 29, 2022 07:05:22 PM

Your article has piqued a lot of positive interest. I can see why since you have done such a good job of making it interesting.

Casino bet said:
Dec 29, 2022 07:05:52 PM

When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style.

mtom said:
Dec 29, 2022 10:15:05 PM

Aw, it was an incredibly good post. In idea I would like to put in writing similar to this additionally – spending time and actual effort to have a really good article… but what things can I say… I procrastinate alot and also by no means manage to go completed. สมัครUFABET

shark78 said:
Dec 31, 2022 04:19:27 PM

Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. investors crypto

royalty free images said:
Jan 01, 2023 10:05:25 PM

Acknowledges for paper such a beneficial composition, I stumbled beside your blog besides decipher a limited announce. I want your technique of inscription...

mtom said:
Jan 03, 2023 08:25:30 PM

A really exciting examine, I may possibly not concur entirely, but you do make some really legitimate points. old furniture cleared

Argan Oil in Pakista said:
Jan 07, 2023 06:54:38 PM

I would like to get across my admiration for your kindness supporting folks that must have guidance on in this subject matter. Your personal dedication to getting the solution throughout had become particularly advantageous and has encouraged regular people just like me to achieve their pursuits. Your insightful information means a lot to me and substantially more to my fellow workers. Thanks a lot; from all of us.

mtom said:
Jan 08, 2023 04:32:20 PM

I don’t unremarkably comment but I gotta say thank you for the post on this special one . บาคาร่าฝากถอนไม่มีขั้นต่ํา

Global sport said:
Jan 08, 2023 07:15:25 PM

I saw yet another thing concerning this on another blog. Youve obviously spent some time on this. Well done!

mtom said:
Jan 09, 2023 02:48:15 AM

Valuable info. Lucky me I found your web site by accident, and I am shocked why this accident did not happened earlier! I bookmarked it. professional recovery service

mtom said:
Jan 09, 2023 01:55:46 PM

This is really fascinating, You are a very professional blogger. I’ve joined your rss feed and sit up for searching for more of your great post. Also, I have shared your site in my social networks! <a href="https://positivezone.ae/">Positivezone</a>

온라인카지노 said:
Jan 09, 2023 06:21:35 PM

Howdy! I know this is kind of off topic but I was wondering if you knew where I could find a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one? Thanks a lot!

먹튀검증업체 said:
Jan 09, 2023 06:47:04 PM

Aw, this was a very nice post. In concept I want to put in writing like this moreover – taking time and actual effort to make a very good article… but what can I say… I procrastinate alot and under no circumstances seem to get something done.

mtom said:
Jan 11, 2023 03:26:43 AM

Oh i truly envy the method that you post topics, generate an income wish i could create that way.. MPO SLOT

creating a app said:
Jan 11, 2023 06:59:54 PM

Well i’m from Ireland, and throughout Ireland bono and the lads are unquestionably liked and also could certainly not do really much incorrect, we all love them.

mtom said:
Jan 14, 2023 01:38:33 AM

This is a excellent blog, would you be involved in doing an interview about just how you designed it? If so e-mail me! สล็อตฝากถอน true wallet ไม่มีบัญชีธนาคาร

mtom said:
Jan 16, 2023 12:59:34 AM

We are a group of volunteers and starting a new scheme in our community. Your site offered us with valuable information to work on. You’ve done a formidable job and our whole community will be thankful to you. Betting Sites In Uk


Good write-up, I’m regular visitor of one’s site, maintain up the excellent operate, and It’s going to be a regular visitor for a lengthy time. Testoprime vs Prime Male

ISO Training said:
Jan 16, 2023 07:00:37 AM

I think this is among the most significant info for me.

mtom said:
Jan 18, 2023 01:11:52 AM

i have so many funny bones in myself that is why i would love to be a comedian” ufabet

Indian Grocery Store said:
Jan 19, 2023 05:48:17 AM

Thanks for sharing. This article is very informative.

mtom said:
Jan 20, 2023 12:35:47 AM

Hi there, I found your website via Google while searching for a related topic, your website came up, it looks great. I have bookmarked it in my google bookmarks. Best Places for Juice in Silver Lake, Los Angeles ========= This information is magnificent. I understand and respect your clear-cut points. I am impressed with your writing style and how well you express your thoughts. best bitcoin casinos

Terra Hill said:
Jan 21, 2023 03:42:04 PM

Made to measure curtains… [...]check out the sites listed below, worth a read for interiors and rugs enthusiasts[...]…

เว็บบอล said:
Jan 24, 2023 02:59:19 PM

Bloghopping is really my forte and i like to visit blogs,    

https://gymsjunkie.c said:
Jan 24, 2023 03:28:00 PM

Hello” i can see that you are a really great blogger,    

Best bba College in said:
Jan 25, 2023 03:51:55 PM

Terrific write-up! Thought about savored the actual scanning. I’m hoping you just read additional by you. There’s no doubt you could have wonderful awareness in addition to ability to see. My corporation is really prompted keeping this particulars.

Login *

loading captcha image...
(type the code from the image)
or Ctrl+Enter