Selector:Tag Selectorp{Background-color:purple;}Class Selector. one{color:red;}ID Selector#a {font-size:25px;}Inline style: Link an external style sheet with the address one.css.Import the external style sheet with the address one.css.Descendant
This article mainly for you in detail the CSS basic style list, with a certain reference value, interested in small partners can refer to
CSS List properties allow you to place, change, or label an image as a list item
Second, the attribute
List-
This article is mainly for everyone to explain the CSS common operation classification method, interested in small partners can refer to
One, size operation
Height set Element Heights
Line-height Setting Row Height
. p1{ width:400px;
Custom
The underlying text shadow effect, but applying the Text-shadow attribute can give a lot of fancy results. Note: ie9-does not support this property.
Syntax
Text-shadow:h-shadow V-shadow Blur Color;h-shadow: Required. The position of the
This paper mainly introduces the difference and use of PX em rem in CSS. Has a good reference value. Let's take a look at the little series.
Recently, when learning fonts with font size settings, font-size units can be px or em or REM, so what is
This article is mainly for you in detail the CSS set page navigation bar related information, the need for friends can refer to the following
HTML page: FreeBSD Home Wind and Rain Floating
CSS files:/***
Today found in Dreamweaver can format CSS code, so that the code will not be so messy, should be in the site revision, found that the original CSS code case is inconsistent, formatting and indentation is inconsistent. It's much easier to format with
First, the problem found
In general, the element has the default white-space:normal (Word wrap, no wrapping is white-space:nowrap), when the input text exceeds the defined width will be automatically wrapped, But when the input data is a bunch of
First, inheritance characteristics:
1, learned Java and C + + Note that the protected field or method belonging to the father will certainly be inherited by the child, and CSS has this feature, see the following example:
css's Inheritance demo
This article is mainly for you to introduce the element horizontal vertical center of the CSS3 implementation of the code, with a certain reference value, interested in small partners can refer to
Words don't say much, the code is as follows
BoxLayout layout write the UI code after the end of the programmer should be unfamiliar, writing the front-end code is also familiar, including the HTML framework frame. But in the past, using float to control the CSS, control is relatively complex,
Definition and usage
The Left property specifies the right edge of the element. This property defines the offset between the left margin boundary of the anchored element and the left boundary of its containing block.
Note: If the value of the
The hierarchy relationship is:
:
To change the effect of the reference (Orange box)The hierarchy relationship is::
The reference is the top-level element case.The hierarchy relationship is::
Use only the Margin property layout to position
CSS font properties Define font family, size, bold, style, and warp for text
Second, the attribute
font-family Set Font family
Font-size Setting the font size
Font-style Setting font style
Font-variant display text in a small uppercase font or
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service