Do the optimization of the operation of the website know, in order to improve the speed of the site's access, will generally open Apache/nginx gzip, the file compression, but this compression and I would say that the compression is not a level.
How to create a background-attachment attribute that does not require JavaScript but only CSS can achieve a fixed and scrolling effect on the page background. We see that there are a lot of site projects using parallax effect, through the picture
JavaScript, Package library--cssChange the method in the package library to the prototype Add method4 Additional methodsThe Tian_jia_class () method adds a class attribute to the obtained element, and the parameter is the Class property value, which
Summary of common CSS abbreviation syntax
Using abbreviations can help reduce the size of your CSS files and make them easier to read. The main rules for CSS abbreviations are as follows:
Color
16 binary color values, if each two bits of the same
So far you've learned how to create sites in WebMatrix, how to use styles and layouts to make Web pages smaller and easier to maintain, and enable browsers to download and render more quickly. You have created dynamic and data-driven Web pages, and
Array should be we in peacetime write JS code, the use of the highest frequency, in peacetime projects, a lot of data can be stored through an array, operation and other tasks. In addition to object, the array type should be the most commonly used
Css selector and css3 Selector
Css selector is commonly used. I hope it will be helpful to you.
1,*: General Selector
1 * {2 margin: 0;3 padding: 0; 4 }
Select all elements on the page, which is usually used to clear the default style of
IntroductionThere are many different ways to do this, and many different opinions should be taken. I have a table that shows how to do this. It can be used as a division. I believe some people will feel more comfortable with division, but I chose a
Advantages of css + div layout and css advantages. Currently, css + div layout must be understood when designing webpages. This is an important highlight for front-end designers. Let's take a look at the advantages of css layout today.I,Fast page
1. Add a print style1. Prepare a css file for screen display and printing, as shown below:Css used for screen display: Css used for printing: 2. import method:3. Directly write the screen display style and print style in a css file:@ Media print
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:
Put the input and img in the same line. The img label is always a header higher than the input, which is ugly. What I found most on the website is to add an align = "absmiddle" attribute to img. This method does seem feasible but does not comply
The code is as follows:Copy code Page 404 The code is very simple. It refers to a div label of class = "wall", a label, and an img label of class = "img404. The next step is to write css. First, let the div of class = "wall" have a width
CSS selector is the basis for CSS webpage layout. What are CSS selector and how to use it properly? There are three types of delimiters. Apart from the first type of HTML selector, we can name the other two types by ourselves. When naming them, note
Due to compatibility issues between browsers, in order to make the pages show relatively consistent in different browsers or for other reasons during webpage creation, the website creator summarizes various Hack methods; these methods are often used
When writing CSS, you may think that notepad is not the best. What css editing tools can improve the coding efficiency?TopStyle is a CSS editing tool that I have been using. I did not study it carefully at first, but later I looked at the features
The display: inline-block attribute is often exposed when CSS is used for performance. Whether it's a friend who has been familiar with Web standards or standards for a long time, metropolis is confused and vague about this attribute.Display: inline-
Tip: you can modify some code before running Textarea-like effect implemented by js cSSTextarea-like effect implemented by js cSS与之间-->与之间-->This is implemented using DIV! Terms and Conditions General Servicing servicing resistorVideo
This is an article about css hack. The css hack mentioned in this article is aimed at the HACK of the attributes in the class and id, and the ordering is required. Today I want to talk about CSS HACK for class and id. The
If you use your hands to quickly draw a dry oil painting, the screen will become blurred. The blur attribute under CSS can achieve this fuzzy effect.Let's take a look at the expression of the blur attribute:Filter: blur (add = add, direction,
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.