Recently found on the Internet A only CSS implementation of the Pull-down menu (drop-down menus), feeling very fresh and cool. So carefully read the author's introduction and source code, found that the core is a ": hover" pseudo class use. In CSS1,
We are often confronted with the following situations:
1, IMG Image has a border, especially after the link of the picture with a border
2, pictures beyond the bursting div
View CSS Set picture width height
Below we solve these 2 problems
Note that some CSS properties may not be supported for low-version browsers (typically IE), so it is important to note that when targeting a low-version browser.Web site about compatibility detection for CSS properties: http://caniuse.com/Some
CSS Cascading Style Sheets
CSS (cascading style sheets) is the cascading style sheet. It is a computer language used to represent file styles such as HTML (an application of the standard Universal Markup Language) or XML (a subset of the standard
Floating is almost finished, the following section of the figure reference reference it
In more words, if the inline element is also set to float, it is automatically equal to a block element, which is equal to setting the displayThe following
1. Block and inline element comparison
All HTML elements are part of block and inline.
The block element is characterized by:
Always start on a new line;
Height, row height and top and bottom margin can be controlled;
The width defaults to 100% of
Site navigation is the most important element of the site, is the most direct and convenient site to provide users with access to the content of the site tools. Site navigation from the form of mainly by horizontal navigation, vertical navigation,
HTML basic composition structure and tag recognition, html composition tagBasic HTML structure and tags
In fact, the composition structure is illustrated in a diagram as follows:
At present, the general website structure is so unclear and
Mobile Terminal layout: Write an adaptive square box, square boxMove side layout, div layout proportionally, width as a percentage, so that the height and width are the same, that is, make div A Square
Recently I was writing a small program and
CSS skills and mistakes summary, CSS skills mistakes Summary
4.14
CSS background attribute Abbreviation:
Combination of background-position attributes :[Left|Center|Right] | [Top|Bottom] (No underline in the middle after the
Css conquer Selectors 1, Css conquer SelectorsSelectors)
--------------- Refer to css learning in MDN.
First, there are many css selectors, but in general there are two types:
Tag selector ~ Single tag
The name of a single tag. You can use this
Css writes the first letter of an English statement in upper case.
Css writes the first letter of an English statement in uppercase:The first letter of the first word is an English statement. The following code example shows how to use css to
BFC and IFC, BFCIFC
The most important aspect of our webpage is aesthetics. bfc is a Block-level formatting context, which is an independent rendering area. Only Block-level box is involved, it specifies the layout of the internal Block-level Box
Css id selector and CLASS selectorIn CSS, a selector is a pattern used to select elements that require adding styles.The attribute selector can select an element based on its attributes and attribute values.
Three basic selector types: Tag name
The default value is 0% 0%. In this case, the background image is located in the upper left corner of the content area of the object that does not include the patch.If only one value is specified, the value is used for abscissa. The default ordinate
We should all know that the text-overflow: ellipsis attribute is used to overflow the display ellipsis (…) of a single line of text (...). Of course, some browsers also need to add the width attribute. The code is as follows:Copy code Overflow:
I suddenly realized that I had been writing pages in my previous way of thinking, and I did not notice many details. Although it is truncated, the details still exist. For example, a word is also truncated when it is not required to be truncated, so
I. About the noWrap attribute of TD☆Ask the question:I set nowrap and do not set nowrap to the same effect. That is, the table automatically stretches with the text. Why?& Rarr; answer:The behavior of the noWrap attribute of the TD element is
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