Example of styling a hyperlinkA:link The hyperlink is pre-state.a:visited Post-click status of Hyperlinksa:hover when hovering over a hyperlinka:active When you click the hyperlinkWhen you define these states, there is a sequence L v H aCode area:1 DOCTYPE HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/TR/xhtml1/DTD/ Xhtml1-transitional.dtd ">2 HTMLxmlns= "http://www.w3.org/1999/xhtml">3 Head>4 Metahttp-equiv= "Content-type"co
-Responsive layoutsUse the. table-responsive element within the DIV tag to enclose the. Table element
Form Style
. Form-group: Form group style, which contains
. Form-control: Add style to elements such as input,select,textarea (check box cannot add this)
Placehoder Property
15 Practical Online CSS examples and 15 CSS examples
Front-end technology can be said to be a technology that must be learned. Currently, websites all need to understand DIV and CSS. In China, many companies recruit web designers to write basic front-end code, therefore, the
The following are the most commonly used 40 CSS/JS styles and functional techniques to process form elements. They are actually fully collected.
1-Styling dropdown select boxes-modifier drop-down list.
2-
3-Styling even more form controls-this is the control of HTML
. Finally, we insert a submit button that can be clicked by the user to submit the form. All of this can be done with pure HTML code.
YII provides several helper classes for simplifying view writing. For example, to create a text entry field, we can call Chtml::textfield (), and to create a drop-down list, call CHtml::d ropdownlist ().For example, the following code will generate a text input field that can touch the publication submit action when th
code and tags are available.20.Sitemap CelebrationTree navigation using nested lists is ideal for site map pages.21. Simple cross-browser slideshowDo not use JavaScript for transparency techniques (but at the expense of not conforming to XHTML validation)22. Fillet 2A rounded div with a flow span and height.23. Create a chart with a percentage of the background pictureThe line chart uses the list 24.CSS Bar Chart: Example3
helper (helper) classes to simplify view writing. For example, to create a text input field, call CHtml: textField (); to create a drop-down list, call CHtml: dropDownList ().For example, the following code generates a text input field, which can trigger the form submission action when the user modifies its value.
The code is as follows:
CHtml: textField ($ name, $ value, array ('submit '=> ''));
Next, we use CHtml to create a login
By default, the validation prompt is displayed with a LABEL element, and CSS class is added, which makes it easy to set error controls and display the error messages by using CSS.
/* Input Control validation Error *
Form Input.error {border:solid 1px red;}
/* Validation error message * *
form label.error{wi
:
Formname.inputfieldname. $error
If the validation fails, the value of this property is true, and if the value is false, the value of the input field is validated.
Here we test these validation instructions:
The effect is as follows:
At the same time, ng for these kinds of authentication directives, targeted to set some CSS style
They include:
icons to different types of links.19. Simple CSS rounded borderOnly one picture and a few lines of code and tags are available.20.Sitemap CelebrationTree navigation using nested lists is ideal for site map pages.21. Simple Cross-browser slideshowDo not use JavaScript for transparency techniques (but at the expense of not conforming to XHTML validation)22. Fillet 2A rounded div with a flow span and height.23. Create a chart with a percentage of the ba
CSS provides a style description for the HTML markup language that defines how elements are displayed. CSS is a breakthrough in the field of web design. It enables you to modify all the page elements associated with a small style update. Now on the basis of CSS and new CSS3, in the front-end of the work of CSS is still
.2.1. The most simplified CSS reset (reset) /* This is the most common and simplest CSS reset, setting the padding and margin values of all elements to 0, which avoids the "divergence" of some browsers in understanding the default values of the two properties. (This method is not recommended, too rough */* { padding:0; margin:0;}2.2. Csslab CSS Reset
.17.PNG MaskingAnother way to add rounded corners to a picture. (Fillet, Border, shadow)18. Use CSS to add hints to hyperlinksA simple tutorial on adding icons to different types of links.19. Simple CSS rounded borderOnly one picture and a few lines of code and tags are available.20.Sitemap CelebrationTree navigation using nested lists is ideal for site map pages.21. Simple Cross-browser slideshowDo not use
icons to different types of links.19. Simple CSS rounded borderOnly one picture and a few lines of code and tags are available.20.Sitemap CelebrationTree navigation using nested lists is ideal for site map pages.21. Simple Cross-browser slideshowDo not use JavaScript for transparency techniques (but at the expense of not conforming to XHTML validation)22. Fillet 2A rounded div with a flow span and height.23. Create a chart with a percentage of the ba
{ background:blue;
::-webkit-validation-bubble-arrow-clipper { border:2px solid black;
::-webkit-validation-bubble-heading { background:green;
::-webkit-validation-bubble-message { color:white; Background:purple;
::-webkit-validation-bubble-text-block { border:1px solid red; padding:1em; }
Chrome26 display effect in OS X:
This is a more practical example, showing the tip box effect:
::-webkit-validation-bubble-message { color: #eee;
::-webkit-val
line, Instead of truncating the word.
3.div CSS Background background
The Background property--background is the core attribute in CSS. You should have a good understanding of it. This article discusses in detail all the relevant properties of background, even background-attachment, and introduces how it looks in the upcoming CSS3, as well as the newly added background attributes.
Div+
Examples of the Form Verification plug-in Validation Application
Jquery. Validation is an excellent jquery plug-in that can verify the client form and provides many customizable attributes and methods for good scalability. Now, based on the actual situation, I organize the verification frequently used in the project into an instance DEMO. This article explains th
Believe it or not, CSS and JavaScript begin to overlap, just as CSS adds more features. When I wrote the article "five ways to interact between JavaScript and CSS that you may not know", I was surprised how JavaScript and CSS overlap. Today, I will focus on seven types of work you can do with
Version 2
A table that uses a very beautiful background image and is marked with semantics.
17. PNG masking
Another method is to add rounded corners to an image. (Rounded corner, border, and shadow)
18. Use CSS to add a prompt for a hyperlink
A simple tutorial on adding icons for different types of links.
19. Simple CSS rounded border
It only applies to one image and a few lines of code and tags.
20. Sitem
When I wrote the article "5 ways you might not know about JavaScript and CSS interaction," people were amazed at how JavaScript and CSS overlapped. Today, I will focus on the 7 kinds of work you can do with CSS-no need for JavaScript or graphics.
Css@supports
When using features that some browsers may not have, every
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.