Vid varje steg, en CSS-klass tillämpas för att ändra bakgrunds färgen på elementet.
At each increment, a CSS class is applied that changes the background color of the element.
Om du inte markerar kryssrutan kommer ingen CSS-klass genereras för det här formatet.
If you don't select the check box, no CSS class will be generated for this style.
Detta kan enkelt åstadkommas genom att lägga in ett div-element med CSS-klass tooltip i anslutning till inmatningsfältet.
This can easily achieved here by writing next to the input field a div whose CSS class is tooltip.
Om attributet har ett inmatningsfel, ändras ledtextens CSS-klass till error, vilket förändrar ledtextens utseende med hjälp av tillämpliga CSS-stilar.
If the attribute has an input error, the label's CSS class will be changed to error, which changes the appearance of the label with appropriate CSS styles.
Lägg till en CSS-klass till menyobjektbilder: ger mer stylingalternativ till bilder angivna i menyobjekt 16456
Add a CSS class to menu item images: Provides more styling options to images set to menu items #16456
Till exempel, CHtml::activeLabel() ändras ledtextens CSS-klass till error, vilket förändrar ledtextens utseende med hjälp av tillämpliga CSS-stilar.
For example, CHtml::activeLabel() generates a label associated with the specified the attribute has an input error, the label's CSS class will be changed to error, which changes the appearance of the label with appropriate CSS styles.
På liknande sätt genererar CHtml::activeTextField() ett textinmatningsfält för det specificerade attributet i modellen och ändrar dess CSS-klass i händelse av inmatningsfel.
Similarly, CHtml::activeTextField() generates a text input field for the specified model attribute and changes its CSS class upon any input error.
Export - Tecken som inte är giltiga för CSS-klassnamn kommer nu att avlägsnas från namngivna stilar när de skapar motsvarande CSS-klass för HTML och HTML (Dynamic).
Exports - Characters not valid for CSS class names will now stripped from named styles when creating the corresponding CSS class for HTML and HTML (Dynamic).
I vissa fall används samma css-klass på olika ställen på olika sidor.
In some cases the same CSS class is used in different places on different pages.