Chapter 4 CSS getting started-Water's original learning points:
1. Use CSS
2. Three Methods
3. cascade and inherit
Lecturer: Li Yanhui
This chapter mainly discusses CSS (stacked style sheet) in HTML5, which is used to typeset and format the
DIV + CSS color border background and other styles-roucheng 1. Use css abbreviations
Using abbreviations can help reduce the size of your CSS file and make it easier to read. For the main rules of css abbreviations, see common css abbreviations
CSS optimization 2-(commonly used CSS abbreviation syntax summary) using abbreviations can help reduce the size of your CSS file and make it easier to read. The main rules for css abbreviations are as follows:
Color
The hexadecimal color value. If
As follows:JQUERY code:Copy codeThe Code is as follows:Var text = $ (". release textarea"). val (); // get the value of the input boxVar counter = text. length; // get the value of the input box$ ("# Numtj em"). text (500-counter );$ (Document).
Style sheet:CSS (cascading style Sheets, cascading style sheets)Function: Beautify HTML page, page layout.Classification:Inline, written in the label inside Style= "" Inside the style, the advantage is the control precision, reusability is
• Maximum length of input characters• Character truncation speed can be set• Customizable text styles of prompt information (improved custom text content)This plug-in calculates the length of English characters and Chinese characters.To put it
JQuery sets, appends, removes, and switches styles.
This document describes how to set, append, remove, and switch styles using JQuery. Share it with you for your reference. The specific analysis is as follows:
With JQuery, the style operations of
The CSS derivation selector allows you to determine the style of a label based on the context of the document. Before you learn to derive, learn the basic CSS selectors. As mentioned in the previous article, the position of the selector is as
CSS reset and cssresetPrevious
Most of the time, as the front end, we need to add a copy before writing the CSS style.reset.css. CSS reset is not only used to clear the default style, but also a global style definition. If the CSS reset is not
PHP instance ---- perpetual calendar. PHP example-perpetual calendar: a simple perpetual calendar creation process. Basic requirements: 1. get the date 2. get the number of the given date 3. get the number of weeks for the given date 4. get the PHP
Common CSS abbreviations can help reduce the size of your CSS files and make it easier to read. The main rules for css abbreviations are as follows:
Color
The hexadecimal color value. If the two values are the same, they can be abbreviated to half.
10 classic CSS skills
1. Simplified CSS font attributes
In general, CSS is used to set the font attributes as follows:
Font-weight: bold;Font-style: italic;Font-varient: small-caps;Font-size: 1em;Line-height: 1.5em;Font-family: verdana, sans-serif;
Howdy is applied to serif and sans-serif fonts in web design. Hello, everyone. It's me again ~
The last time we briefly talked about the font set and some basic issues that need attention. Today, we will continue to talk about the general font
This article mainly introduces JQuery's simple lighting game sharing, which is a very interesting intelligent game, if you want to learn TypeScript, you can refer to the recent cases where diaosi is forced to learn TypeScript (5555 will be expelled
Chapter III1, the value of inheritance is not special, even 0 of the particularity of not. So changing the style of a hyperlink generally requires an independent declaration and cannot be changed by inheritance.2. Cascading-conflicting declarations
Use of colors and units
Color
Color is the name of the color, such as: red
Presentation with 16 notation example: #FF0000
RGB value for color, RGB (red, green, blue), each value is between 0-255Color is generally used
Web front-end development CSS base styles summarize colors and the use of units
Color
Color is the name of the color, such as: red
Presentation with 16 notation example: #FF0000
RGB value for color, RGB (red, green,
Learn html&css a week, every day Class 9 hours, have time to see Html+div+css video, Feel good.Basic idea: From the big aspect (the whole structure) starts, the HTML basic knowledge "deconstruction" then uses, learns the edge to use.Learning Effect:
8.1 Creating a basic table structure8.1.1 Table StructureThe HTML table consists of 4 basic elements:
Table: In HTML, the table element is a container that contains the other elements used to create the table;
TR: Represents a row in a
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.