8 CSS utilities and css utilities to improve efficiency

Source: Internet
Author: User

8 CSS utilities and css utilities to improve efficiency

CSS, that is, Cascading Style Sheets, was launched in 1997. It was about 17 years ago. Now, it is a convenient way for us to develop web pages and help us create one amazing website design and template, this improves our creativity and adds symmetric beauty to the overall platform.

Web design is not achieved overnight. It requires constant practice and improvement before the deadline. If you spend a lot of time writing CSS code, you are wasting resources. There are many tools that can improve the efficiency of CSS files.

These tools require a certain understanding of common tags and editing parameters. With these skills, you can easily edit and improve various new or existing CSS files and integrate various web pages. However, there are so many tools that only the right tools can be used easily and reduce maintenance costs. How should we choose? The following are the most commonly used tools in 8 CSS codes.

1. CSS Vocabulary

CSS Vocabulary provides almost all the functions required by developers. Write comments, rule sets, commands, modules, class delimiters, attributes, declaration blocks, media queries, expressions, and so on.

Http://apps.workflower.fi/vocabs/

2. CSShake

CSShake is a tool that helps you move web elements. It is also widely used. CSShakes has the class for moving DOM and the best set of classes.

Http://elrumordelaluz.github.io/csshake/

3. Extract CSS

Extract CSS is an online tool that extracts IDs, classes, and inline styles from HTML documents. Then output in the form of a CSS style sheet.

Http://extractcss.com/

4. Stylestats

This is the Node. js library used to collect CSS statistics.

Http://www.stylestats.org/#uri

5. Saass fffunction

Sassaparilla is a quick way to respond to webpage design projects using Sass and Compass.

Http://sass.fffunction.co/

6. Prefix my CSS

This tool is amazing and can get the code prefix. You only need to paste the CSS code to the window to obtain the CSS code with the prefix.

Http://prefixmycss.com/

7. Sky CSS Tool

Sky CSS Tool allows us to create CSS classes.

Http://skycsstool.sourceforge.net/

8. CSS Form Code maker

This HTML/CSS style generator can create many elegant la S.

Http://www.maketemplate.com/form/


[50 points reward] css + div encoding methods to improve efficiency and to adjust compatibility shortcuts

So busy, let me participate.

Let's take a look at all the things mentioned above. I will focus on some practical things.

When writing css, no matter how varied your design is, innovation will never change. The first thing you need to do is to redefine html tags. Although this may sound contradictory, as mentioned below, you will be enlightened. This is a very important step in improving efficiency and is the beginning of your work.

The following code is from the official website of Apple.
/* RESET */
Html, body, div, ul, ol, li, dl, dt, dd, h1, h2, h3, h4, h5, h6, pre, form, p, blockquote, fieldset, input {margin: 0; padding: 0 ;}
H1, h2, h3, h4, h5, h6, pre, code, address, caption, cite, code, em, strong, th {font-size: 1em; font-weight: normal; font-style: normal ;}
............

This code is a good explanation of the above contradictions. Maybe you do not know its usefulness for the moment, but you will find it interesting after studying it.

The above code is almost the content we need to touch and change every time we write the process. Since every time we repeat the work, why not be prepared in advance. If you do not design a CSS framework of your own, simply put the above content in a notepad. If you copy it in, it is much more fun, easy, and efficient. This code is more than that. You can summarize it and find it interesting.

Since efficiency is mentioned, we have to mention making good use of the CSS framework and making rational use of it. Like Blueprint CSS, Yahoo's YUI, Elements CSS Frameworks, and so on, you can take as much time to understand them. Don't worry about this as a useless analysis process, and you will improve a lot later.

When you set up the CSS framework, the rest is just the change in layout and the adjustment process in detail, instead of starting from 0 ......

II. On Baidu knowledge, I once said that there was a BUG when I used IEtest earlier. At that time, I was buried ......
I personally used Multiple IEs for a long time and used the most stable software. However, it is a pity that the official website has not been updated yet and it is still in IE6.

However, to date, IE6 will be cold and cold with XP, And it is sooner or later to ignore IE6. More excited when talking about the next version, you will find that there are fewer adjustments to the code between IE and FF, Perhaps thanks to W3C standards and Web2.0.

As for the quick introduction method, I personally strongly suggest you go to the publicity and demonstration video of the CS5 series software released by Adobe. You will be surprised that all the work is there, all are completed in one stop. I personally like DW CS5's support for popular frameworks, blogs, and other systems. There is also something called Alive lab, testing IE, FF, and others, other debugging software is no longer required. You can follow up on the CS5 package.

3. about bugs and css hack. I don't know if you have been familiar with IE6 or earlier versions. Those are so-called bugs. Others may be confused. You need to revise these bugs before writing each time. At present, I personally think there are no bugs.

As for css hack, anyone with experience knows how to make good use of it rather than abuse it. I think it is more like a patch. If you don't crop your clothes, but want to fix it with a patch later, it's no different from making it up. In the beginning, we should lay a solid foundation.

I always believe that when the written code conforms to the nesting rules, semantics, and WEB standards, you can put the code in the crotch to show that the differences between browsers will not be too great. Only when your code does not comply with the standards will there be various differences.

Finally, when the difference is very small, do not pursue perfection or rigor too much. You can spend 3 or 4 lines of code to correct the difference of 1 pixel, which is not worth the candle.

... The remaining full text>

Q: How can I improve the efficiency of div + css layout?

Save some examples of CSS for development. After all, it is not too fast to start from the beginning. Implement modular design, which is the best choice for efficiency. Therefore, you have prepared a lot of modular CSS, which can be easily applied, such as the CSS of the drop-down menu, the CSS of the table, and the CSS related to the image effect.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.