Web Front-End optimization best practices the forth part is oriented to CSS. A total of 6 rules of practice are currently in line. See also the Mozilla Developer Center article: writing efficient CSS
1. Place CSS on top of code page (put
There have been some very useful html/css frameworks in the past few years that have made it easier for developers to design their work. Some frameworks even provide templates to make development work more handy. Here's a list of 8 very useful
You can specify media= "print" to make the stylesheet work only when printing, and then use Display:none to hide headers, footers, advertisements, and so on, and note that this should be done by setting the width of the page content to 100% better,
Article Introduction: CSS pseudo element before, after magical: the production of fashion focus picture frame
In CSS tags have such a label div:before, Div:after, for before, after the part of the people are quite unfamiliar, then these
From top to bottombody{FILTER:progid:DXImageTransform.Microsoft.Gradient (gradienttype=0,startcolorstr= #ffffff, endcolorstr= #000000);Two, from top left to right down gradientbody{Filter:alpha (style=1,opacity=25,finishopacity=100,startx=50,finishx=
This article will make a basic introduction to several new CSS attributes (Text-shadow,box-shadow,and border-radius). These CSS3 properties are often used to strengthen the page layout.
RGBA
The previous 3 values are RGB color values, and the last
Here is a list of commonly used examples, not for research purposes, and for each box, there are no attributes such as Margin,padding,boeder.
single row One column The following is a reference fragment:body {margin:0px; padding:0px;
Web page Production WEBJX article introduction: 9. Height is not suitable for height is not suitable for when the height of the inner object changes when the outer height can not be automatically adjusted, especially when the inner layer object
1. The body selector declares the font-size=62.5%;
2. Divide your original PX value by 10, then replace EM as the unit;
Simple, if only need the above two steps can solve the problem, may no one use PX. After two steps, you will find that your
css| Mouse | Display in general, the mouse is displayed with a diagonal arrow, a vertical line that becomes a header when moved to the text, and becomes a hand type when moved to the hyperlink. However, with CSS you can control the display of the
Css
Work and web production related, recently sorted out some CSS things, sent out, hope useful.
Reuse:Often use some basic pattern overlays, such as font color and bold. There may be three situations in the Web page: 1. The font is Red 2. Font Bold
Css
The application of IFrame is very common, there are usually two kinds of requirements:1, to obtain an IFRAME effect, that is, with a scroll bar, you can save a lot of suites.2, to embed a page, to implement the framework link.If you are not
Cascading Style Sheets (CSS) are a series of formatting rules that control the appearance of Web page content. When you use CSS to format page formats, content and presentation are separated from each other. The page content (HTML code) is in its
In every Internet application I've created, I've tried to avoid creating menus that are entirely composed of pictures. In my opinion, the menu system should use text. Doing so also makes the menu cleaner, clearer and easier to read, regardless of
Footnotes (Footnote) are an excellent way to provide more information to users and an effective complement to the subject information, which is common in a variety of printed books. However, since footnotes have these benefits, of course we have to
After completing a front-end job, many people forget the structure and details of the project. However, the code is not immediately complete stereotypes, the rest of the time there is continuous maintenance work, and these jobs may not be done by
I believe that the friends who have studied CSS know class this thing, do not know how you usually make the page when the application, I am so to do div layout code. I don't know what I mean, I'm not sure.
I divide class into 2 kinds, layout class,
Sometimes, we use CSS to create a highly adaptive layout, how to ensure that the footer (footer) in the context of not more than one screen is always at the bottom of the layout is a relatively headache. I've seen some examples of using absolute
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