CSS is an indispensable part of the XHTML standard era. Effectively reducing the size of CSS files can definitely speed up your website.
List of CSS abbreviations and their general properties.
Background: Background attachment, background
Filter Effect
Function Description
Alpha
Set different transparency changes
Blur
Create a blur effect
Dropshadow
Creates an offset image profile, that is, a projection shadow.
2.2.2 relative positioning
Relative positioning is a very easy-to-understand concept. If an element is relatively located, it appears at its location. Then, you can set the vertical or horizontal position to move the element "relative to" its
1. Install nodejs
Http://nodejs.org/
2. Install the respective node package
Js I use uglifyjs GitHub address: https://github.com/mishoo/UglifyJS
Css I use clean-CSS GitHub address: https://github.com/GoalSmashers/clean-css
The image uses
Because the header and bottom of the main channel page and list page of the website are the same, if you place each page in a separate page, the maintenance volume is too large when the header and bottom need to be changed. So I want to make the
Style Sheet CSS plays an important role in Web pages. Its use has always been a hot topic. CSS is short for Cascading Style Sheet ". CSS can define almost all webpage elements. Although CSS is powerful, it is rarely used at ordinary times. The most
1. Add a comment block at the beginning of the style sheet to describe the creation date, creator, tag, and other remarks of the style sheet.
Example source code:/*---------------------------------Site: site nameAuthor:
First, let's talk about the box mode. The so-called box mode isCSSView elements,CSSThink of each single element as a box, as shown in:
It is called the box mode because it is very similar to the box in our daily life. We will not talk about
That is, operations on styles in DOM elements
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Function: CSS (name)Function: gets the value of the specified attribute name of the matching
Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
Html
Xmlns
= "Http://www.w3.org/1999/xhtml"
>
Head
>
Title
>
No title page
Title
Naming rules for div + CSS during page CuttingContent: content/container navigation: nav sidebar: sidebarColumn: column logo: logo page subject: MainAdvertisement: banner hotspot: hot news: NewsDownload: Download subnavigation: subnav menu:
Document: use JavaScript to obtain the height and width of the current window
Script
Language
= "JavaScript"
>
VaR S = "" ;S + = " Visible area width: " + Document. Body. clientwidth;S + = " the visible area
In the past, JS was used to implement horizontal and vertical center of pages during webpage layout.
Code . This is a good method, but it is also difficult for friends who are unfamiliar with JS Code. Today, let's talk about how to use Div + CSS to
What is inheritance?To understand the inheritance of CSS style sheets, we should first start with the document tree (html dom. The document tree consists of HTML elements.
Similar to the family tree, the document tree also contains the
Introduction: This is a detailed page for making CSS cascading drop-down menus. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: //
Common CSS naming rules
Header: Header
Content: content/Container
End: footer
Navigation: nav
Sidebar: sidebar
Column: Column
Overall Layout width of the page peripheral control: wrapper
Left right center
Logon entry: loginbar
(PHP 3, PHP 4, PHP 5)
Header -- send an original HTTP Header
Description
Void header (string [, bool Replace [, int http_response_code])
The Header () function is used to send an original HTTP header. For more information about HTTP headers, see
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