Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÓÃdiv+css½â¾öVS2005Öв¼¾ÖÄѵÄÎÊÌâ

ÓÃdiv+css½â¾öVS2005Öв¼¾ÖÄѵÄÎÊÌâ
Div+CSS²¼¾ÖÈëÃÅ½Ì³Ì ¡¶×ª×Ô À¶É«ÀíÏë http://www.blueidea.com/tech/site/2006/3574.asp¡·
Ò³Ãæ²¼¾ÖÓë¹æ»®
ÔÚÍøÒ³ÖÆ×÷ÖУ¬ÓÐÐí¶àµÄÊõÓÀýÈ磺CSS¡¢HTML¡¢DHTML¡¢XHTMLµÈµÈ¡£ÔÚÏÂÃæµÄÎÄÕÂÖÐÎÒÃǽ«»áÓõ½Ò»Ð©ÓйØÓÚHTMLµÄ»ù±¾ÖªÊ¶£¬¶øÔÚÄãѧϰÕâƪÈëÃŽ̳Ì֮ǰ£¬ÇëÈ·¶¨ÄãÒѾ­¾ßÓÐÁËÒ»¶¨µÄHTML»ù´¡¡£ÏÂÃæÎÒÃǾͿªÊ¼Ò»²½Ò»²½Ê¹ÓÃDIV+CSS½øÐÐÍøÒ³²¼¾ÖÉè¼Æ°É¡£
ËùÓеÄÉè¼ÆµÚÒ»²½¾ÍÊǹ¹Ë¼£¬¹¹Ë¼ºÃÁË£¬Ò»°ãÀ´Ëµ»¹ÐèÒªÓÃPhotoShop»òFireWorks(ÒÔϼò³ÆPS»òFW)µÈͼƬ´¦ÀíÈí¼þ½«ÐèÒªÖÆ×÷µÄ½çÃæ²¼¾Ö¼òµ¥µÄ¹¹»­³öÀ´£¬ÒÔÏÂÊÇÎÒ¹¹Ë¼ºÃµÄ½çÃæ²¼¾Öͼ¡£
 
ÏÂÃ棬ÎÒÃÇÐèÒª¸ù¾Ý¹¹Ë¼Í¼À´¹æ»®Ò»ÏÂÒ³ÃæµÄ²¼¾Ö£¬×Ðϸ·ÖÎöһϸÃͼ£¬ÎÒÃDz»ÄÑ·¢ÏÖ£¬Í¼Æ¬´óÖ·ÖΪÒÔϼ¸¸ö²¿·Ö£º
¡¡¡¡1¡¢¶¥²¿²¿·Ö£¬ÆäÖÐÓÖ°üÀ¨ÁËLOGO¡¢MENUºÍÒ»·ùBannerͼƬ£»
¡¡¡¡2¡¢ÄÚÈݲ¿·ÖÓÖ¿É·ÖΪ²à±ßÀ¸¡¢Ö÷ÌåÄÚÈÝ£»
¡¡¡¡3¡¢µ×²¿£¬°üÀ¨Ò»Ð©°æȨÐÅÏ¢¡£
¡¡¡¡ÓÐÁËÒÔÉϵķÖÎö£¬ÎÒÃǾͿÉÒÔºÜÈÝÒ׵IJ¼¾ÖÁË£¬ÎÒÃÇÉè¼Æ²ãÈçÏÂͼ:
 
¸ù¾ÝÉÏͼ£¬ÎÒÔÙ»­ÁËÒ»¸öʵ¼ÊµÄÒ³Ãæ²¼¾Öͼ£¬ËµÃ÷һϲãµÄǶÌ×¹Øϵ£¬ÕâÑùÀí½âÆðÀ´¾Í»á¸ü¼òµ¥ÁË¡£
 
¡¡¡¡DIV½á¹¹ÈçÏ£º
¡¡¡¡©¦body {}¡¡/*ÕâÊÇÒ»¸öHTMLÔªËØ£¬¾ßÌåÎҾͲ»ËµÃ÷ÁË*/
¡¡¡¡©¸#Container {}¡¡/*Ò³Ãæ²ãÈÝÆ÷*/
¡¡¡¡¡¡¡¡¡¡©À#Header {}¡¡/*Ò³ÃæÍ·²¿*/
¡¡¡¡¡¡¡¡¡¡©À#PageBody {}¡¡/*Ò³ÃæÖ÷Ìå*/
¡¡¡¡¡¡¡¡¡¡©¦¡¡©À#Sidebar {}¡¡/*²à±ßÀ¸*/
¡¡¡¡¡¡¡¡¡¡©¦¡¡©¸#MainBody {}¡¡/*Ö÷ÌåÄÚÈÝ*/
¡¡¡¡¡¡¡¡¡¡©¸#Footer {}¡¡/*Ò³Ãæµ×²¿*/
ÖÁ´Ë£¬Ò³Ãæ²¼¾ÖÓë¹æ»®ÒѾ­Íê³É£¬½ÓÏÂÀ´ÎÒÃÇÒª×öµÄ¾ÍÊÇ¿ªÊ¼ÊéдHTML´úÂëºÍCSS¡£
дÈëÕûÌå²ã½á¹¹ÓëCSS
½ÓÏÂÀ´ÎÒÃÇÔÚ×ÀÃæн¨Ò»¸öÎļþ¼Ð£¬ÃüÃûΪ“DIV+CSS²¼¾ÖÁ·Ï°”£¬ÔÚÎļþ¼ÐÏÂн¨Á½¸ö¿ÕµÄ¼Çʱ¾Îĵµ£¬ÊäÈëÒÔÏÂÄÚÈÝ£º
 
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ÎÞ±êÌâÎĵµ</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>
</body>
</ht


Ïà¹ØÎĵµ£º

Çø·ÖCSS Display Visibility

/***************************by
garcon1986********************************/
 
Çø·Ö
visibility:hidden
ºÍ
display:none
visibility:hidden
hides an element, but it will still take up the same space as before.
The element will be hidden, but still affect the layout.
Display: none
hides ......

¼æÈÝie6¡¢ie7¡¢ffµÄcss¶¥¶Ë¹Ì¶¨Î»Öö¨Î»

body{
background-image:url(about:blank);
background-attachment:fixed;
}
.myDiv{
position:fixed !important;
position:absolute;
top:expression(eval(document.documentElement.scrollTop));
}
bodyÔªËØÖÐbackground-image:url(about:blank);background-attachment:fixed;¿É·ÀÖ¹ie6ÖгöÏÖÉÁ ......

css³£ÓÃС¼Ç

×ÖÐÍ
ÎÄ×Ö顏É«
color: #000;
ÎÄ×Ö´óС
font-size: 8pt;
ÎÄ×Ö×Ö體
font-family: “arial”, dotum;
ÎÄ×Öб體
font-style: italic;
С×Ö體
font-variant: small-caps;
×Ö間¾à離
letter-spacing: 1pt;
Ðиß
line-height: 15px; (Òà¿É為°Ù·Ö±È)
ÎÄ×Ö´ ......

css:padding

¼ä϶ÊôÐÔÊÇÓÃÀ´ÉèÖÃÔªËØÄÚÈݵ½ÔªËر߽çµÄ¾àÀë¡£°üÀ¨£º
1£©×ó¼ä϶ÊôÐÔ£¨padding-left£©
Õâ¸öÊôÐÔÓÃÀ´É趨×ó¼ä϶µÄ¿í¶È¡£ÀýÈ磺
.d1{padding-left:1cm}
2£©ÓÒ¼ä϶ÊôÐÔ£¨padding-right£©
Õâ¸öÊôÐÔÓÃÀ´É趨ÓÒ¼ä϶µÄ¿í¶È¡£ÀýÈ磺
.d1 {padding-right:1cm}
3£©Éϼä϶ÊôÐÔ£¨padding-top£©
Õâ¸öÊôÐÔÓÃÀ´É趨Éϼä϶µÄ¿í¶È¡£À ......

FLex×é¼þÖ®¹ö¶¯Ìõ(ScrollBar)CSSÃÀ»¯

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Style>
ScrollBar
{
    /*»®¶¯¿éͼƬƤ·ô*/
    thumbDownSkin: Embed(source="scrollBar/thumb. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ