-What is auto?
+auto is self-adapting, auto is the default value for many dimension values, which is calculated automatically by the browser.
+ The sum of the margin, border, padding, and content widths of the block-level elements form the parent
There is no way to set width directly for character fonts, but there are other ways to control the width of the character font.
The width of a single character font
The width of a single character font is only affected by the Font-size
Encountered a border need to set the fillet, and then found that after setting the Border-collapse:collapse, border-radius:5px will not work, on various checks, found that this is the CSS itself, the two can not be mixed together to use. So we used
Single Line Vertical Center
Single-line vertical centering can be done directly with Line-height=width
hello world
So the text Hello World is vertically centered, and if you want the entire p to be centered in the parent element, a layer of p is
Most CSS properties are easy to use. Often, when you use CSS properties on elements of markup language, the resulting results are rendered immediately as you refresh the page. Other CSS properties, however, can be complex and work only in a given
Concept
The Z-index property sets the stacking order of elements. Elements that have a higher stacking order are always in front of elements that are lower in stacking order.
Comparison of hierarchical relationships
1. For sibling elements, the
Every time you use Box-shadow, you have to consult the data to achieve the corresponding effect, now summed up, convenient to view later.
First, the syntax:
E {box-shadow:inset x-offset y-offset blur-radius Spread-radius color};E {box-shadow:
The List-style-image property in CSS is to set the image as a list item marker. This paper describes in detail the definition and usage of list-style-image, list-style-image syntax, and list-style-image examples.
The function of the
1. The use of transition transitions is typically implemented by a browser that directly changes the element's CSS properties. For example, if you use the: hover selector, once the user hovers over the element, the browser applies the properties
A lot of people just mention
@font faceRules, the heart will involuntarily "Oh ~ ~" The sound: "This I know, can be used to generate custom characters small icon!" "The problem is that a lot of people think that creating a small character icon
This article mainly introduces the property value inheritance in CSS, introduces the inheritance and non-inheritance of the attributes, and analyzes the limitations of inheritance and whether it can be canceled, and so on, the specific operation
Previous words
Contour Outline is outside the border boundary, it does not participate in the document flow like a border, so the outline does not affect the flow of the document when it appears or disappears, that is, does not cause the document to
I use P{WRITING-MODE:TB-RL when I make a Web page;} , the Chinese characters displayed in the Wind page are firm and normal, but when I do my xiaonei, I add this code to my Graffiti board *textrea{writing-mode:tb-rl;} I want my message board to be
The layout file layout of the XML layout file in the folder Res/layout is mainly LinearLayout (linear layout), tablelayout (table layout), relativelayout (relative layout). Of course, there are absolutelayout, (absolute layout), Framelayout (frame
How to use CSS3 to achieve the right loop flash effect
text right flash effect
First, directly on the code! Here's the following:
Second, this white gradient flash effect with CSS3 do very easy also very convenient, the only bad place
A href = "javascript:" With a href = "#",
These two methods. What are the differences between the two statements? Which one is used to write more standards?
Connecting href = "#" means connecting to the current page is meaningless, and the page
Self-made simple Reward function, self-made
1. Apply for cnblogs JS Code support
2. Upload the collection code image to cnblogs
3. In the following codeHttp://files.cnblogs.com/files/eritpang/weixin.bmpReplace it with the link address of the
Css priority notes and css priority notes
From fantastic css
1.css priorities we use the selector's "special degree ":
The description contribution (for example, div, ul) of each element is 0, 0, 1
Each class, pseudo class (such as hover),
Html semantic tag retrieval and html semantic tag Retrieval
1. del and ins labels
Compatibility: all browsers support
Del: defines the deleted text in the document.
Ins: defines the text that has been inserted into the document.
html Tag
The difference between height: 100% and height: auto, heightauto
I have never understood the difference between height: 100% and height: auto. Recently, height: 100%; overflow: hidden; has been used in front-end pages. However, some browsers have
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