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
Hyperlink pseudo-Class name (before, after click, mouse hover, when clicked).Tag name: Link visited hover activeSets the properties of the mouse shape (value: Default cursor, pointer to hyperlink, indicates that the program is busy, indicates
CSS3 How to achieve interlaced color change? Use CSS3 selector p:nth-of-type (odd) odd and p:nth-of-type (even) even numbers
Here are some examples:
this is a headingthe first paragraph.the Second paragraph.the third paragraph.
Code Show:
Overflow:hidden;/*text-overflow:ellipsis; Some examples need to define this property, can actually omit */display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
Overview
-webkit-line-clamp is a non-canonical attribute
This article is mainly for everyone to explain the CSS commonly used to manipulate the image of the relevant information, the need for friends can refer to the next
body{ background-color: #0078b3;}. image{ border:1px solid darkgray; Width:
Pseudo-classes can be seen as a special class selector, a special selector that can be automatically recognized by browsers that support CSS. Its greatest use is the ability to define different style effects for links in different states.1.
Test project today found that the Opacity property is incompatible with IE8, and finally on the Internet to find out the use of the following properties can be solved, very happy!
Css:filter:Alpha (OPACITY=50)/* This is the private property of IE,
This article mainly introduces the use of CSS3 to make a simple 3d translucent cube picture display of related materials, the text gives a complete sample code, for everyone's understanding and learning has a certain reference value, the need for
CSS (cascading Style Sheet)
Cascading in cascading style sheets means that styles are passed from one level in the document structure to another, and that the browser determines which source's style attributes are applied to a tag in many
The box type affects rendering and layout, and there are two basic box types: block-level (block-level) and inline-level (inline-level). In fact there are other types of boxes (such as table, List-item, etc.), but will eventually be treated as block-
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
Practice One:
1, class selector use exercise:
class Selector Use example no class selector effects class selector red effects class selector Blue effects Same category The selector can be used on a different marker
2. Effect:
3.
Overview of how CSS is laid out
The way CSS layouts are divided into parts
How CSS is laid out
Layout inside the box
Layout of text
The layout of the box itself
The layout between the boxes visual formmatting
BFC
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,
In Web page making, this method of making fine borders is essential. Here admin10000.com introduces 2 common forms of table thin border making, all through XHTML validation.
table fine border of two CSS implementation methods first
When I was doing the navigation exercises, I was looking at the source code of those sites that had been successful, hoping that through these successful code I could learn the programming ideas of the front-end engineers behind the code.In the view
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