HTML and CSS are two different languages that work on a Web page, so you must link CSS with HTML.
The simplest of the two are introduced directly in the HTML tag, or in front of the HTML file, the following is a simple code example
Title
Sometimes when you look at CSS, you see that some CSS properties are defined as background:transparent. It means the background is transparent. In fact, the background default color is the Transparent property. For example, if an element is covered
Active section of the conversation
Active English is interpreted as "positive", and the expression on the mouse is the meaning of click. The most examples of active selectors are probably applied to the link above, but opening the link is a
This article uses the latest IE10 and Firefox and Chrome tests (as of May 27, 2013 22:23:22)
The principle of CSS:
We know that CSS is written in different places with different priorities,. css file definitions
First, let's look at the following
Css:active Selector
Definition and usage
: The active selector is used to select the active link.
When you click on a link, it becomes active (active).
Tip: Use the: Link selector to style links to pages that are not visited: visited is used to set
Describe:
A line that is drawn around an element that is located on the periphery of the edge of the border, which acts as a prominent element. does not occupy space.
Not available under IE.
Property
Describe
Note
The first thing to know is that P is a block-level element that has a single line in the page, arranged from top to bottom, which is the legendary stream.
As can be seen, even if the width of the P1 is very small, the page can tolerate P1 and p2,p2
Using JS and CSS to tell the picture of the real control in a fixed area, larger than the region's equal scale, less than the center of the area display.
css+js perfect control picture size
" /p>
In general, we can set a CSS property for picture to define its height and width. But sometimes we just want to control the maximum visible size of the picture. There are generally two ways to do this: 1. Use CSS property values directly, 2.
Zoom this property is IE proprietary properties, in addition to set or retrieve the object's scale, it also can trigger IE haslayout properties, clear floating, clear margin overlap and other functions. However, it is important to note that Firefox
In the web design, the horizontal navigation menu is very extensive, in CSS style, we usually use the float element or "display:inline-block" to solve. And today we're going to focus on how to center elements of unknown width, and here are a few
Display:none is considered non-existent and does not load, that is, it does not preserve its physical space for objects that are hidden, that is, the object disappears completely on the page.
Visibility:hidden is hidden, but retains its location
To put it simply:
1.clear:both is intended to allow the elements of a floating element to be unaffected by floats.
2.float:none is to let child elements do not inherit the floating effect of the parent element.
Clear:both to keep floating content
We can use CSS syntax to control the form of hyperlinks, color changes, why links must be underlined and color to distinguish it? The main reason is to consider 1, poor eyesight 2, color-blind people ...
Let's do a link like this: The hyperlink
I set the font-weight:bolder before; I never understood why the last effect on the browser became normal, and then I found out that bolder was relative to the parent element.
If the parent object has a value of normal and the child object value is
Rule one: When a style conflict occurs due to inheritance, the most recent ancestor wins ( recent principle ).
The inheritance mechanism of CSS allows elements to inherit styles from the ancestor elements that contain it, considering the following
for block-level elements such as P,p
line breaks for normal text (Asian and non-Asian text) elements have a default white-space:normal, which wraps after the defined width:
Html Normal text Wrapping (Asian and non-Asian text) elements have the
Introduction:
Today want to write a personal welcome interface, and toss up the front, but really catch the urgent AH
For the sake of beauty, take more time, it's three o'clock in the morning again. 0.0
CSS for single-sheet background image
Html5 01 note, html501
1. HTML is a markup language for website creation.
Ii. Basic HTML syntax
Html tags are the most basic unit and the most important part of html.
Generally, use the tip number to start ""
Tags can be divided into two types (in
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