Friends, Bai front-end architect CSS Magic "Secrets of the CSS", has been published, and presented a copy of me. After looking at this book, there are many CSS tips. So you will have a big harvest, here to help him publicize it! Today's case, but
CSS support a variety of unit forms, such as percentages, PX, PT, REM, and so on, the percentage and px are commonly used units, with the mobile end and response to the popular, REM, VH, VW also began to be widely used, these units you may not know,
Untitled Document Hello, real estate! Hello, real estate! Hello, real estate! Hello, real estate! Hello, real estate! Hello, real estate! Hello, real estate! Hello, real estate! Hello, real estate! Hello, real estate!
Improve readability of css + div layoutI. CSS style file decompositionFor small projects, the code is divided into several parts by page structure or page content before writing code, and comments are given. For example, you can separate global
IE7 has fixed many bugs and added support for some separators, therefore, hack for IE hiding or display, such as * html {} and html> body {}, will expire in IE7. Although CSS Hack is not recommended, it is a foolproof filter, but it can only appear
Style Code, four attributes are required, and the width must be set on the current container. The specified width of the parent container is invalid: The code is as follows:Copy code . Box {Width: 200px;White-space: nowrap;Overflow:
The code is as follows:Copy code Html code 1-1 1-2 1-3 1-4 2-1 2-2 2-3 2-4 3-1 3-2 3-3 3-4 4-1 4-2 4-3 4-4 Through the following images and examples, we can easily find that using CSS is very easy to implement a table-like data
CSSLine breaks make your pages look more beautiful. See the following figure.Line feed of a common text sectionCase study: in practical applications, we often encounter this problem, that is, a piece of text, with a clear width, requires text to
I. Use css abbreviationsUsing abbreviations can help reduce the size of your CSS file and make it easier to read. For the main rules of css abbreviations, see common css abbreviations syntax summary, which is not described here.II. Define the unit
When using TABLE and DIV for page layout design, the size defined in the layout will be damaged in case of large images and long English strings, resulting in page layout deformation.Is there a solution?The OVERFLOW: hidden attribute of CSS can be
Custom categoryToday we are talking about a new knowledge category ". In fact, this knowledge is no stranger! In retrospect, there was an attribute in the HTML tag called class, which didn't explain what the attribute was. In fact, it is not an
A design group was added a few days ago. A group of people were clamoring to learn css, but they didn't know where to start. So I muttered in the group, "haha, I am a master .... "As a result, there were countless cursing. Although I was not
normal text wrap (Asian text and non-Asian text) elements have the default white-space: normal, when defined Css The code is as follows: Copy code # Wrap {white-space: normal; width: 200px
Css style codeIn this example, all the img labels on the web page are scaled by default. If you want to scale a specific image, you only need to modify the css name and then call it on the web page.For example, if you want to display a large image 10
Let's take a look at the css div webpage layout as shown in the figure below. The analysis is composed of a large layer consisting of multiple li tags,The following figure shows the div layout of the above figure. avatar list
The Mask attribute creates a film covering the surface for the object. Its expression is also simple:Filter: Mask (Color = Color)Only one Color parameter is used to specify the Color used as the mask.Similarly, let's take a look at the effect of an
Values of the Foo type. Common types are discussed in the unit section.FooKeywords that must appear in the original text (although case-insensitive). A comma and a slash must also appear in the original text.A B CA must exist, followed by B,
In CSS, four pseudo classes are used to define the link styles: a: link, a: visited, a: hover, and a: active. For example: The code is as follows:Copy code A: link {font-weight: bold; text-decoration: none; color: # c00 ;}A: visited {font-weight:
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