Perhaps the best use of sprite tools, well, at least I used the best use.
First install Css-sprite, install here is very pit, wait for me to finally say.
The code is as follows:
NPM Install Css-sprite
I use gulp to build the front-end code, so I
This tutorial will help you understand the Web site and CSS files, and will also help you understand the content in the CSS file. Index part knowledge a formatted CSS annotation paragraph, CSS standard and best example.
CSS is used to define the
The inheritance of a CSS is defined by the style attributes that are used. In other words, when you look at CSS properties Backgruound-color, you see a column of "inheritance," and maybe you barely care about it, but it's still very useful.
What is
should CSS styles and JavaScript scripts be placed in external files?
Or do you put them inside the page itself?
How to deal with some of the performance rules of thinking, 52css.com on these issues, make some discussion.
Using external files in
A quick look-up table is an effective tool to help you remember things. The shortcut key tables that Web designers and developers use frequently make their online productivity much more efficient.
In fact, the quick look-up table is to help us
Center implementation of absolutely positioned elements
If you want to ask how CSS to achieve the absolute positioning elements of the center effect, many people have the answer in mind.
The mainstream usage of good compatibility is:
CSS code
What to note:
First, the name of the selected word should choose not too specific to express a certain state (such as color, size, etc.) words, to avoid when the state changes when the names lose meaning.
Second, the style class name consists of a
The method of hiding input is different in the browser, we do not want it to change the properties of its inline when we use it in the Web page, now we analyze it separately as follows:First write a common style:
input{
height:20px;
width:50px;
}
1
Title add a background to the text entry box-www.cxybl.com/title STYLE type=text/css. BG {background-image:url (bgdemo2.jpg);/* If you want to add your website logo, These two line annotations can be enabled background-repeat:no-repeat;
There are many ways to clean up floats, like using the clear genus with the BR tag, using the element's overflow, using an empty tag to set the Clear:both, and so on. However, given the compatibility and semantic issues, we generally use the
1. Brief introduction: Why is it unwise to use table typesetting?
The table exists in HTML only for one purpose: display tabular data. However, since then the border= "0" allows designers to put pictures and text in the invisible grid. So far,
Sometimes, in order to avoid the page of a div content too much, and cause page distortion, we usually define Overflow:hidden in CSS, so that will not display text, but it seems that the user experience is not very good, in order to get the best
In the default case, our CSS will be the table's border removed, below to share with you under the CSS control table inside and outside the border, color, size style, want to learn from friends can refer to the
In fact, according to Common sense,
Site production using some unique font effects can increase the overall effect of the site, in fact, for the text shadow effect, we can completely use CSS to achieve!
Text-shadow
Text-shadow allows us to achieve the perfect text shadow effect.
If you have a more gorgeous picture want to do background, you can set this:The
code is as follows: body{Background:url (img.jpg); background-position:center; background-repeat:no-repeat;}
But the effect is likely to be this:
pictures
A simple style
The easiest thing to do with CSS is to set a different font style for our headings. We can create a CSS rule that will apply the style to all tags that appear in the page (or the entire site, when using an external style sheet).
This article mainly introduces the pure JS implementation according to the CSS class selection dom, the need for friends can refer to theOn-line reference, I modified part//code as follows, pure JS, request browser support Getelementsbyclassname
This article mainly introduces the JS print interface CSS Center code, the need for friends can refer to the following Code as follows: Function preview (oper) { if (Oper
This article reads: "Row height" refers to the height of a line, in particular, refers to the distance between the baseline between two lines. The css,line-height is used to control the vertical distance between rows and lines. The Line-height
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