-align:center; 8} 9. btn a{10 line-height:16px;11 display: Block;12 text-decoration:none;13}14. btn:hover{15 background-position:-50px-374px;16}final effect-before mouse move in:final effect-after mouse move in:Well, the tutorial is over, and the side dishes are simply a demonstration of a complete production process, with a lot of details in between, such as browser compatibility, CSS optim
-align:center; 8} 9. btn a{10 line-height:16px;11 display: Block;12 text-decoration:none;13}14. btn:hover{15 background-position:-50px-374px;16}final effect-before mouse move in:final effect-after mouse move in:Well, the tutorial is over, and the side dishes are simply a demonstration of a complete production process, with a lot of details in between, such as browser compatibility, CSS optim
Article Introduction: CSS Web Design tutorial: The Outline of the form button.
The use of outline, we all like to reset the reset style sheet directly:
* {
Outline:none;
}
Eric Meyers in his CSS reset is such a reset:
/* Remember to define focus styles! */
: Focus {
outline:0;
}
It is common to say these methods. But there's a little bit of a
. However, the rendering of IE 5 and 6 is not correct. According to the specification, the space occupied by the element content is set by the Width property, and the padding and border values around the content are calculated separately. Unfortunately, IE5. X and 6 use their own non-standard models in quirks mode. These browsers have a width property that is not the contents, but the sum of the content, padding, and width of the border.
Although there are ways to solve this problem. But the bes
you set the width height, then the settings are displayed as
In-line elements
Does not monopolize a row
If the width is not set, the default is as wide as the content
Inline elements are not allowed to set width and height
Inline block-level elements
In order for an element to be able to have both a single row and a width and height set, the inline block-level element appears
Do not monopolize a row, and you can set the width height
compilation is:
Found one more src-styles-index__red--1ihPk class name, which is the class we inherited above
In addition to inheriting from our own modules, we can also inherit CSS rules from other files, as follows:
We'll styles create a new folder under thecolor.css
/* color.css */.red { color: red;}.blue { color: blue;}
And then index.css import it into the file.
/* index.css */.red { color: red;}.header { font-size: 32px;}.title {
that incense starts from the other attributes of the object, as you can recall, in order for the layout to be clearer in the preview, we used the border property so that all two objects have a 1px border, and in the CSS layout, the width of an object is not only determined by a width value, The real width of an object is the width of the object itself, the left and right margins of the object, the left and right borders, and the interior margins, so
entire table (that is, the table label), while the cell (that is, the td label) adopts the in style. Save the disk and check the effect. Is it the same as the following?After learning how to create a table with a 3D border of 1x1, it is not difficult to make the results of this example. You may wish to explore it yourself.# P #The previous examples show how to beautify the border of a table with css. You can try different combinations to make a more
Author: anonymous nameSource: webpage tutorial Network
[Introduction]To better understand CSS, especially CSS rendering in IE, haslayout is a concept that needs to be completely cleared. Most ie display errors are due to haslayout.
more complex. Then look at the light blue and light pink tracks to feel it.
Grid area
The meaning of grid lines, cells, and tracks is to divide the container into the area you need to grid areas. A region is an entire block that can contain multiple cells, so how do you divide it? The area is the intersection of two horizontal grid lines and two vertical grid lines. By dividing the container reasonably into multiple areas, the layout is also achieved. The area can overlap, so it is z-index.
The
-ratio dot matrix printer. Device ratio device-aspect-ratio-dot matrix printer. The object color or color list color,color-index the display screen. The resolution of the device is resolution. Syntax structure and usage media queries are used in two ways, is to embed "@media" in CSS styles, and to write different styles in the same CSS through different windows. Another is to use the reference, in the exte
-position:-25px-374px; 5 height:16px; 6 width:24px; 7 text-align:center; 8} 9. btn a{10 line-height:16px;11 display: Block;12 text-decoration:none;13}14. btn:hover{15 background-position:-50px-374px;16}final effect-before mouse move in:final effect-after mouse move in:Well, the tutorial is over, and the side dishes are simply a demonstration of a complete production process, with a lot of details in between, such as browser
be left:0px to the left, and the right column will be displayed with the left-hand edge, and the right-hand bar would be right:0px, making the right column to the right, while the middle #center will use the normal CSS style:
Copy Code code as follows:
#center {
Background-color: #F2FDDB;
border:1px solid #A5CF3D;
height:400px;
margin-right:202px;
margin-left:202px;
}
For #center, we do not need to set its floating
Article Introduction: Cssgaga Tutorial: Generate Datauri, extract pictures, download remote CSS files, image lossless compression.
cssgaga– generates Datauri and MHTML
Before:
. Base64{background-image:url (' base64/logo.png ');
Base64{border-image:url (' Base64/logo.png ');}
Note: The Base64 folder of the picture file you want to convert is the relative path when the
This time to bring you the CSS loading animation effect using the tutorial, CSS loading animation effect using the note what, the following is the actual case, together to see.
This article introduces a pure CSS loading effect code example, to share with you, specifically as follows:
Preview
Code
KeyFrames Custom key
This article mainly introduced the CSS Gird Layout Tutorial Guide's related material, the small compilation thought quite good, now shares to everybody, also gives everybody to make a reference. Follow the small series together to see it, hope to help everyone.
CSS Grid Layout is a two-dimensional grid-based layout system that is designed to completely change th
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.