Document directory
Cascade order
External style sheet
Internal style sheet
Inline Style
Term Translation
CSS Overview
CSS refers to the stacked style sheet (CAscadingSTyleSHeets)
Style DefinitionHow to displayHTML Element
Styles are
Document directory
Issues you need to pay attention to during development
XHTMLPart
Not supported by most mobile phones:
"Disable" attribute of form elements
Some mobile phones do not support:
"Button" label
"Input [type = file]" tag
Length in CSS
Absolute unit: almost no webpage
In inch 1In = 2.54
Cm 2 1 CM = 0.394in
Pt lb 1In = 72pt
PC Pica 1In = 6 PC
Relative unit: relatively common
Em 1em = font-size value of the corresponding font
Ex 1ex = the height of the lowercase x
1. Write rules
When CSS is used to define the font, you may do the following:Font-size: 1em;Line-Height: 1.5em;Font-weight: bold;Font-style: italic;Font-variant: Small-caps;Font-family: verdana, Serif;In fact, you can abbreviated these
The graphic Verification Code is designed to prevent automatic identification by machines by making use of the implications of the human brain. However, a low-level graphicThe Verification Code (which can be quickly cracked) has no significance
1. CSS simplified font rules
When CSS is used to define the font, you may do the following:
Font-size: 1em;Line-Height: 1.5em;Font-weight: bold;Font-style: italic;Font-variant: Small-caps;Font-family: verdana, Serif;
In fact, you can abbreviated
I. Use CSS
1. Why use CSS: Unified website Style
CSSS Syntax:
Selector {
Attribute 1: attribute value;
Attribute 2: attribute value;
}
Dome1.html file:
Title 1 Title 2 Title 3 Title 4 Title 5
CSS file:
. Css1 {Font-size:
Batch filling of arrays in JS:
1. Fill in the statement at the same time
VaR Beatles = array ("John", "Paul", "George", "ringo ");
2. We don't even need to explicitly indicate that we are creating an array. In fact, we only need to enclose a
OptimizationCode: Tips for abbreviations of CSS font attributes
(From: http://www.webwoo.net/bc/bencandy-38-20144-1.htm)Code optimization: the abbreviation of the font attribute of the web page technology CSS, which helps reduce code and optimize
When you see this title, you will surely think of this Article "How browsers work". This article details many browser details and translates them into Chinese. Why do I want to write another article? For two reasons,
1) This article is too long and
1. CSS simplified font rulesFont-size: 1em;Line-Height: 1.5em;Font-weight: bold;Font-style: italic;Font-variant: Small-caps;Font-family: verdana, Serif;
In fact, you can abbreviated these attributes:
Font: 1em/1.5em bold italic small-caps
Using abbreviations can help reduce the size of your CSS file and make it easier to read. The main rules for CSS abbreviations are as follows:
ColorThe hexadecimal color value. If the two values are the same, they can be abbreviated to half. For
Generic
Overflow: hidden; automatically hides excess content to prevent opening layers and table ranges.
! Important
Apply priority of a style rule
Text color: # ff0000; text color font-family: "Arial", "Helvetica", "Sans-serif"; font-size: 9px;
I. Make full use of CSS abbreviations /* Pay attention to the top, right, bottom, and left writing order */1. margin (4 sides ):1px 2px 3px 4px (top, right, bottom, left)1px 2px 3px (Omitted left equals right)1px 2px (Omitted top or bottom)1px (the
Although the master page function has been available for a long time, it has never been used.
Recently I plan to upgrade my website. upgrade net1.1. net 3.5, in addition to new features such as implicit type, extension method, Lambda expression, and
Recently, due to the incorrect PS font, some text in many software systems is garbled. Two things are required to restore the system font to the normal state by default:
1. Clear the c: \ windows \ fonts folder. Use unlocker to clear the registry
isarray FunctionReturns a Boolean value to indicate whether a variable is an array.
SyntaxIsarray (varname)The varname parameter can be any variable.
DescriptionIf the variable is an array, the isarray function returns true; otherwise, the
1.css simplified font rules
When CSS is used to define the font, you may do the following:
Reference content is as follows:Font-size: 1em;Line-Height: 1.5em;Font-weight: bold;Font-style: italic;Font-variant: Small-caps;Font-family:
CSS is perfectly compatible with Internet Explorer 6, Internet Explorer 7, Internet Explorer 8, Internet Explorer 9, and Internet Explorer 10.
About
CSSCompatibility with various browsers is already a common topic, and tutorials on the Internet are
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.