I. Abbreviations
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 four sides are the same)
Simplify all:
*/Body {margin: 0} ------------ indicates that
General use of all browsers (IE6 IE7 FF mainly used in the market)Height: 100px;Dedicated for IE6_ Height: 100px;Dedicated for IE6* Height: 100px;Dedicated for IE7* + Height: 100px;Share IE7 and FFHeight: 100px! Important;I. CSS compatibilityThe
Step 1: Create an unordered listWe first create an unordered list to create a menu structure. The code is:
homepage product introduction service Introduction technical support buy now Contact Us
Step 2: Hide the default Li
DOCTYPE Selection
The selection of doctype is the document type, which determines whether the page elements and the defined CSS will take effect, because in different doctype, the HTML elements that can be used on the page are different, let's take
HTML and CSS are the most commonly used languages on two web pages. Although it may not be the most advanced form of web development, every website established in the last decade uses these two languages. Needless to say, they have many things to
To achieve some special effect, we need to use Javascript to dynamically change the Css attribute of a tag. For example, when the mouse goes through an image, we add a border to the image. The code may be as follows:JavaScript code
What are
1. Element selector: It is often an HTML element or an element defined in XML. For example:
H1 {color: red;}/* element selector */h2 {font: normal 12px/16px "Courier New", Arial;}/* css keywords are separated by spaces, only the font size in the
Unicode-CSS Chinese font to Encoding
Chinese name
English name
Unicode
Unicode 2
Windows
New body
PMingLiU
\ 65B0 \ 7EC6 \ 660E \ 4F53
& # X65B0; & # x7EC6; & # x660E; & # x4F53;
Fine body
Method
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->///
/// Import css on the Content Page
///
/// current page
/// css style path
Public static void AddStyleSheet (Page page, string
Test This is an odd number of rowsThis is an even number of rowsThis is an odd number of rowsThis is an even number of rowsThis is an odd number of rowsThis is an even number of rowsThis is an odd number of rowsThis is an even number of rowsThis is
1. IE7, Firefox, and Opera all support CSS {position: fixed}, so it is easy to implement.
But there is a small problem here. Today, make a div in the lower right, and set the css style to {position: fixed; right: 0px; bottom: 0px ;}, how can I
Use div + css! Important tag differences between Firefox and IE6[Use! Important flag can be different between Firefox and IE6]Firefox support! Important flag, while IE6 ignores! Important flag, so you can use it! The important tag distinguishes
I am doing a secondary navigation and implementing the ad bar click-close function. The Code is as follows. Copy it to preview the effect!
untitled document
navigation bar (with subnavigation) subnavigation content subnavigation content
When I started to learn about web page design, it was a table layout. At first, I used ps to prepare the website and slice it. Although it is still in use, I should take a closer look at it, most websites have similar characteristics. One is not
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