d.onmousemove=function(a){
if(!a)a=window.event;
if(!a.pageX)a.pageX=a.clientX;
if(!a.pageY)a.pageY=a.clientY;
var tx=a.pageX-x,ty=a.pageY-y;
box.style.left=tx;
box.style.top=ty;
};
d.onmouseup=function(){
if(header.releaseCapture)
header.releaseCapture();
else if(window.captureEvents)
window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);
d.onmousemove=null;
d.onmouseup=null;
};
};
}
window.onload=function(){
drag(document.getElementById('box_header'),document.getElementById('box'));
Nifty("#box_header","top");
Nifty("#content","bottom");
Nifty("#box");
};
//-->
</script>
</head>
<body>
<div id="box" >
<div id='box_header'>
<li style="margin:5px 0px 5px 0px;list-style-type:none">
咸菜
</li>
</div>
<div id="content">
<li>孤獨(dú)中等待,</li>
<li>等待中無耐。</li>
<li>無耐中戀愛,</li>
<li>戀愛中變態(tài)。</li>
</div>
</div>
</body>
</html>
對(duì)里面樣式的介紹: 語法: 說明: 語法: 語法:
語法: <textarea name="textarea" cols="70" rows="5" readonly class="ta1"><c:out value="${discussion.commentcontent}" escapeXml="false"/></textarea> <style tpye="text/css"> --> |
}
.content
{
width:100px;
height:100%;
position:relative;
font-size:20px;
color:green;
}
//-->
</style>
<script language="javascript">
<!--//
function drag(head,layer){
head.onmousedown=function(a){
var d=document;if(!a)a=window.event;
var x=a.layerX?a.layerX:a.offsetX,y=a.layerY?a.layerY:a.offsetY;
if(head.setCapture)
head.setCapture();
else if(window.captureEvents)
window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);
d.onmousemove=function(a){
if(!a)a=window.event;
if(!a.pageX)a.pageX=a.clientX;
if(!a.pageY)a.pageY=a.clientY;
var tx=a.pageX-x,ty=a.pageY-y;
//o.style.left=tx;
//o.style.top=ty;
layer.style.left=tx;
layer.style.top=ty;
};
d.onmouseup=function(){
if(head.releaseCapture)
head.releaseCapture();
else if(window.captureEvents)
window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);
d.onmousemove=null;
d.onmouseup=null;
};
};
}
window.onload=function(){
drag(document.getElementById('headline'),document.getElementById('layer'));
};
//-->
</script>
</head>
<body>
<div id="layer" >
<div id='headline' algin="center">headling</div>
<div id="content">
<table class="content"><tbody><tr><td>absoluteabsoluteabsoluteabsoluteabsolute</td></tr></tbody></table>
</div>
</div>
</body>
</html>
/*如何設(shè)定+固定百度空間的背景*/
在body{}中加入
background-image:url(圖片地址) ; 定義背景圖片
background-repeat: no-repeat; 定義背景圖片不重復(fù)
background-position: center; 定義背景居中
background-attachment: fixed; 定義背景固定,不滾動(dòng)參數(shù)fixed
/*背景設(shè)置*/
body{}中加入background:url(http://hi.baidu.com/0454ldk) repeat-x #FFFFFF
注:
repeat 背景圖像在縱向和橫向上平鋪
no-repeat 背景圖像不平鋪
repeat-x 背景圖像在橫向上平鋪
repeat-y 背景圖像在縱向平鋪
/*鼠標(biāo)樣式設(shè)置*/
在body{} 中添加;CURSOR: url('http://webme.bokee.com/inc/mouse028.cur')}
a:hover{CURSOR: url('http://webme.bokee.com/inc/mouse031.ani')
第一行是鼠標(biāo)指針初始形態(tài),第二行是鼠標(biāo)指針碰到鏈接的形態(tài)
CSS鼠標(biāo)樣式大全
/*半透明設(shè)置*/
.modbox,.modbl,.modbc,.modbr{filter:alpha(opacity=80);-moz-opacity:0.8;width:auto !important;width:100%}
/*解決回車換兩行的問題*/
Shift+回車
/*全能隱藏代碼*/
display:none
/*不停變換空間背景圖片*/
http://magic.qtutu.com/
參數(shù)
color:green 表示字體顏色。
font-size:14px 表示字體大小。
font-family:Georgia,黑體 表示英文字體和中文字體
border:1px 表示邊框的粗細(xì)。
solid green 表示邊框的顏色。
background-color:black 表示背景色。
/*最頂部加字方法!*/
#tabline{margin-top:-490px;right:0px;line-height:8px; background:url(圖片地址) no-repeat bottom; padding-bottom: 40px; margin-bottom: 10px}
圖片上面打上你要的字~歡迎光臨http://hi.baidu.com/0454ldk
/*添加LOGO*/
#main {background:url(頂部LOGO) no-repeat 10px 0px;} /*10px 0px;距左 距頂部*/
#layout {width:980px;margin-left:0px;background:url(底部LOGO) no-repeat bottom 0px;padding-bottom:80px} /*margin-left:0px底部圖片距離最左邊長度;bottom 0px邊框大小;padding-bottom:80px主體模塊最下端距離底部圖片最頂端距離*/
/*添加小背景圖片*/
.stage{background:url(小背景圖片http://hi.baidu.com/0454ldk) repeat-y 0px 0px} /*0px 0px距左 距頂(建議為0)*/
/*空間整體寬度*/
#main{width:740px!important;text-align:center}或#main{width:80%!important}
/*版塊長度及間距*/
#layout td.c2t1{padding-left:55px;width:570px} /*最左版塊*/
#layout td.c2t2{width:60px} /*左右兩版塊間距*/
#layout td.c2t3{width:260px;padding-right:30px} /*第2豎列版塊信息*/
/*定義閱讀文章時(shí) 文章塊寬度 距左長度*/
.stagepad {width:570px;margin-left:44px;}
.stagepad a:link{text-decoration:none;font-weight:bold}
.stagepad a:visited{text-decoration:none;font-weight:bold}
/*文章虛線邊框*/
#m_blog div.cnt{color:#333333;line-height:20px;font-size:14px;border:1px dashed #090688;background:#Ffffff;PADDING: 10px;}
/
#m_blog div.cnt{color:#808080;line-height:20px;font-size:16px;border-top:2px dashed #1DC01D;border-bottom:2px dashed #1DC01D;border-left:2px dashed #1DC01D;border-right:2px dashed #1DC01D;PADDING-RIGHT: 10px; PADDING-LEFT: 10px;PADDING-TOP: 10px;PADDING-bottom: 10px;}
dotted: 點(diǎn)線
dashed : 虛線
double : 雙線邊框
groove : 3D凹槽
ridge : 菱形邊框
inset : 3D凹邊
outset : 3D凸邊
/*前景圖片透明設(shè)置*/
filter:alpha(opacity=90,finishopacity=100,style=0,)
/*播放器*/
#phx{FILTER: Alpha(Opacity=100, FinishOpacity=60, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0)Invert(); WIDTH: 224px;HEIGHT:200px}
Invert(); 濾鏡效果 可以更換
/*不顯示播放器,不影響音樂的播放*/
添加#mod_bgmusic{display:none}
/*日志背景*/
#m_blog.modbox{background:url(圖片)}
或#m_blog div.cnt{background:url(圖片) repeat; /*圖片*/color:#666666;line-height:20px;font-size:14px}
/*滾動(dòng)條*/
#m_blog{scrollbar-face-color: #E100E1;
scrollbar-shadow-color: maroon;
scrollbar-highlight-color: white;
scrollbar-3dlight-color: #E100E1;
scrollbar-darkshadow-color:#E100E1;
scrollbar-arrow-color:#E100E1;
scrollbar-base-color: #E100E1;
scrollbar-track-color: #E100E1;
overflow-y:auto;height:1000px;
filter: chroma(color=#E100E1)}
/*去掉橫向滾動(dòng)條*/
在body{}里加上overflow-x:hidden
/*禁止選擇 鼠標(biāo)右鍵特效*/
#main{
background:url('javascript:
document.oncontextmenu=new Function("event.returnValue=false;");
document.onselectstart=new Function("event.returnValue=false;");
')}
document.oncontextmenu=new Function("event.returnValue=false;");禁止鼠標(biāo)右鍵
document.onselectstart=new Function("event.returnValue=false;")
禁止選擇/*鼠標(biāo)觸碰 按鈕下陷*/
a:hover{}中加入position:relative; left:2px; top:1px; clip:rect( )
/*彈出窗口*/
#comm_info 和#comm_info a 替換#comm_info a{color:#D77B18 border: 1px solid #000000; padding: 10px; background-image: url('javascript:alert("你要說的話");')}
#comm_info{}或#m_links div.item{}
添加
background:url(javascript:alert())歡迎光臨零點(diǎn)壹貮http://hi.baidu.com/0454ldk
/*文章在新窗口中打開*/
a:active { text: (target="_blank")}
/*屏蔽Rss鏈接,baidu圖片*/
#comm_info a {display:none}
/*標(biāo)題背景*/
#header div.lc{} -左
#header div.rc{} -右
插入 background:url(http://***)
/*百度空間 進(jìn)入后彈出對(duì)話框*/
去掉#comm_info div.line 把#comm_info a換成
#comm_info a{color:#D77B18 border: 1px solid #000000; padding: 10px; background-image: url('javascript:alert("歡迎光臨http://hi.baidu.com/0454ldk");')}
/*文章日期旁加小圖案*/
#m_blog div.date
{text-indent:1.5cm;background:url(這里要填上你自己選的小圖片的連接地址) 30% 0% no-repeat; /*背景圖片*/margin:5px 0 8px 0;color:#999999;
line-height:50px; /*調(diào)整行高*/}
/*標(biāo)題欄主體加小圖案*/
模塊ID span.modtit{background:url(http://hi.baidu.com/0454ldk) no-repeat top left;font-size:0px;width:100%;margin-left:-18px;padding-top:3px}
/*常用插入時(shí)間圖片位置的代碼*/
圖片顯示位置——個(gè)人檔案照片下面:
#m_pro div.act{margin-top:5px; background:url(http://escati.linkopp.net/cgi-bin/date.cgi?trgb=red&srgb=red&prgb=red&timezone=GMT-0500) no-repeat bottom; padding-bottom: 22px; margin-bottom: 6px}
圖片顯示位置——文章列表 標(biāo)題下面:
#m_blog div.tit{font-size:14px;font-weight:bold; background:url(http://escati.linkopp.net/cgi-bin/date.cgi?trgb=red&srgb=red&prgb=red&timezone=GMT-0500) no-repeat bottom; padding-bottom: 22px; margin-bottom: 6px}
圖片顯示位置——文章列表 標(biāo)題左面:
#m_blog div.tit{font-size:14px;font-weight:bold; line-height:24px; text-indent:120px; background:url(http://escati.linkopp.net/cgi-bin/date.cgi?trgb=red&srgb=red&prgb=red&timezone=GMT-0500) no-repeat}
圖片顯示位置——TAB導(dǎo)航欄:
#tabline{top:89px; background:url(http://escati.linkopp.net/cgi-bin/date.cgi?trgb=red&srgb=red&prgb=red&timezone=GMT-0500) no-repeat bottom; padding-bottom: 32px; margin-bottom: 6px}
圖片顯示位置——相冊下面:
#m_album div.image{text-align:center; background:url(http://escati.linkopp.net/cgi-bin/date.cgi?trgb=red&srgb=red&prgb=red&timezone=GMT-0500) no-repeat bottom; padding-bottom: 45px; margin-bottom: 1px}
圖片顯示位置——每個(gè)友情鏈接下面:
#m_links div.line{margin-top:5px;line-height:8px;border-top:1px solid #F4C1B5; background:url(http://escati.linkopp.net/cgi-bin/date.cgi?trgb=red&srgb=red&prgb=red&timezone=GMT-0500) no-repeat bottom; padding-bottom: 16px; margin-bottom: 10px}
圖片顯示位置——每個(gè)最新評(píng)論下面:
#m_comment div.item{color:#000000;font-size:12px; background:url(http://escati.linkopp.net/cgi-bin/date.cgi?trgb=red&srgb=red&prgb=red&timezone=GMT-0500) no-repeat bottom; padding-bottom: 22px; margin-bottom: 6px}
圖片顯示位置——每個(gè)文章分類下面:
#m_artclg div.line{margin-top:5px;line-height:8px;border-top:1px solid #F4C1B5; background:url(http://escati.linkopp.net/cgi-bin/date.cgi?trgb=red&srgb=red&prgb=red&timezone=GMT-0500) no-repeat bottom; padding-bottom: 16px; margin-bottom: 10px}
圖片顯示位置——其他區(qū)域:
#comm_info div.line{margin-top:5px;line-height:8px;border-top:1px solid #BBC1C6; background:url(http://escati.linkopp.net/cgi-bin/date.cgi?trgb=red&srgb=red&prgb=red&timezone=GMT-0500) no-repeat bottom; padding-bottom: 22px; margin-bottom: 6px}
其他樣式顯示http://www.csufresno.edu/cgi-bin/Count.cgi?display=date&dd=A
/*調(diào)整圖片位置*/
padding-bottom: 20px; margin-bottom: 5px; padding-bottom為距上高度,margin-bottom為距下高度。
/*調(diào)整TAB距離*/
在TAB{}內(nèi)加入text-indent:30px
/*分割線*/
模塊ID div.line{margin-top:17px;line-height:17px;background:url(http://hi.baidu.com/0454ldk) repeat-x}
/*發(fā)光效果*/
{}中加入filter:glow (color= #299BE8,strength=2)
/*陰影效果字體陰影*/
{}中加入filter:DropShadow(Color=#000000:,OffX=2, OffY=3,Positive=1);或filter:shadow(Color=#000000:,OffX=2, OffY=3,Positive=1)
參數(shù)作用:
Color=陰影的顏色代碼
OffX=設(shè)置陰影與對(duì)象(文字或圖片)的橫向距離偏移
OffY=設(shè)置陰影與對(duì)象的豎向距離偏移
Positive=設(shè)置建立陰影的對(duì)象,true是為非透明像素建立陰影,false是為透明的像素建立陰影,一般不建議使用false
另外,如果添加陰影的地方已經(jīng)有了filter的參數(shù),例如設(shè)置透明度的filter:alpha(),只需把DropShadow(Color=#000000, OffX=3, OffY=3, Positive=true)添加到alpha()的后面即可,這里不需要間隔,當(dāng)中留空格可以,間隔將無效
例如在原來的filter:alpha(opacity=50);后面加上陰影效果代碼:
filter:alpha(opacity=50)DropShadow(Color=#000000, OffX=3, OffY=3, Positive=true);
/*投影的代碼*/
filter:Shadow(Color=gray/*顏色*/,Direction=135/*方向*/)
/*文章標(biāo)題背景*/
#m_blog div.tit{text-indent:1.5cm/*縮近*/;line-height:75px;/*增大行高,使背景圖片完全顯示*/font-size:16px;font-weight:bold;background:url(http://hi.baidu.com/0454ldk) no-repeat;/*標(biāo)題背景圖片,不重復(fù)*/}
line-height:多少px; 設(shè)置標(biāo)題的高度,其實(shí)這里的設(shè)置為圖片的高度就可以了
text-indent:多少px; 設(shè)置標(biāo)題的文本前面空多少寬度,這里可以填圖片的寬度,為了美觀起見,可以再多+5、6px,因?yàn)閳D片和標(biāo)題貼著不好看,這個(gè)主要還是看個(gè)人感覺和喜好設(shè)置了
/*空間透明*/
.modbox,.modbl,.modbc,.modbr{filter:alpha(opacity=80);-moz-opacity:0.8;width:auto !important;width:100%}
/*其他模塊添加圖片*/
#comm_info div.line{margin-top:4px;line-height:8px;border-top:2px solid #ff3333; background:url(http://***.gif) no-repeat bottom; padding-bottom: 32px; margin-bottom: 32px}
/*隱藏其他模塊標(biāo)題*/
#comm_info .modhead span{display:none}
/*個(gè)人檔案添加圖片*/
#m_pro div.image{}加入background:url(http://hi.baidu.com/0454ldk) no-repeat bottom;padding-bottom:100px
bottom讓圖片沉底
padding-bottom增加頭像模塊底下的寬度
padding-bottom數(shù)值一般設(shè)置為LOGO的高度值,LOGO的上邊與頭像的下邊距離0,加大padding-bottom的數(shù)值,LOGO的上邊與頭像的下邊距離亦加大
/*去除模塊背景即完全背景透明*/
刪除模塊background-color:……的屬性;加background:transparent即可
在header{}中加入
background:transparent 這個(gè)參數(shù)的作用是使完全背景透明,并刪除原來的屬性background:url(http://hi.baidu.com/0454ldk)
#header div.rc{}以及.stage{}與header{}同樣設(shè)置
/*其他模塊標(biāo)題添加圖片*/
#comm_info span.modtit{color:#737373;text-indent:16px;background:url(http://hi.baidu.com/0454ldk)repeat-x;font-size:0px;width:100%;margin-left:-18px;padding-top:3px}
/*右下角彈出窗口*/
#main{
background:url('javascript:
var sunPop = window.createPopup();
var popTop=50;
function popmsg(msgstr){
var winstr="<table style=\"border:solid #A96D13 1px\" width=\"200\" height=\"150\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#88CFFF\" >";
winstr+="<tr><td height=\"30\"> </td></tr><tr><td align=\"center\"><table width=\"90%\" height=\"110\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
winstr+="<tr><td valign=\"top\" style=\"font-size:12px; color:#209C20; face:黑體\">"+msgstr+"</td></tr></table></td></tr></table>";
sunPop.document.body.innerHTML=winstr;
popshow();
}
function popshow(){
window.status=popTop;
if(popTop>1720){
clearTimeout(mytime);
sunPop.hide();
return;
}else if(popTop>1520&&popTop<1720){
sunPop.show(screen.width-250,screen.height,200,1720-popTop);
}else if(popTop>1500&&popTop<1520){
sunPop.show(screen.width-250,screen.height+(popTop-1720),200,150);
}else if(popTop<180){
sunPop.show(screen.width-250,screen.height,200,popTop);
}else if(popTop<220){
sunPop.show(screen.width-250,screen.height-popTop,200,150);
}
popTop+=10;
var mytime=setTimeout("popshow();",50);
}
popmsg("2006年12月1日<br>歡迎光臨零點(diǎn)壹貮http://hi.baidu.com/0454ldk。<br>你要說的話http://hi.baidu.com/0454ldk。<br>你要說的話http://hi.baidu.com/0454ldk~");
')
}
/*“發(fā)表評(píng)論”區(qū)域*/
#spBlogCmtor{background:url(圖片地址)} /* 姓名*/
#spBlogCmtURL{background:url(圖片地址) }/* 網(wǎng)址或郵箱*/
#spBlogCmtText{background:url(圖片地址) } /* 評(píng)論內(nèi)容*/
#in_send div.tit{margin:10px 0 10px 0;color:#FFFFFF;font-size:14px;font-weight:bold}
設(shè)置“發(fā)表評(píng)論”區(qū)域上方的“發(fā)表評(píng)論”四個(gè)大字,其中color:#FFFFFF設(shè)置字的顏色,font-size設(shè)置字的大小,font-weight:hold設(shè)置讓這字體加粗,不加粗刪掉。
#in_send td{color:#FFFFFF}
設(shè)置“姓名”、“網(wǎng)址或郵箱”和“內(nèi)容”字的顏色。
#spBlogCmtText {border: 1px solid #FFCCFF;background:#FFFFFF no-repeat top center; background-attachment: fixed}
設(shè)置評(píng)論框底色。background:#FFFFFF設(shè)置顏色,添加圖片則改為background:url(圖片),
圖片最佳尺寸是503*153,1px 表示評(píng)論邊框的寬度,#FFCCFF 表示評(píng)論邊框的顏色。
/*隱藏“查看該用戶在百度的”分類*/
加入#m_pro .basic a.nlk{display:none}代碼即可
/*隱藏“百度空間測試版”圖片*/
#m_comm_info img{display:none}
/*添加天氣預(yù)報(bào)*/
#m_mylink1 div.line{background:url(http://firetear.com/weather/weather.aspx?city=%u5BBF%u8FC1&style=1) no-repeat bottom;line-height:40px;margin-bottom: 10px;margin-top:5px;padding-bottom: 138px}
先編輯自定義模塊,鏈接地址為http://www.tq121.com.cn,然后更換為以上代碼,(注意:要把地址換在你所在地的地址,可以到 http://firetear.com/weather 網(wǎng)站里去找,只需把生成代碼里面SRC后面的地址替換以上地址即可)
/*更多文章居右*/
#m_blog div.more{margin:14px 0 16px 0;text-align:right}
/*在友情鏈接添加“發(fā)送消息”的鏈接*/
在友情鏈接里的鏈接地址內(nèi)填上:http://msg.baidu.com/ms?ct=21&cm=1&tn=bmSendMessage&un=你的百度用戶名
這樣點(diǎn)擊該鏈接就可以給你發(fā)送消息,而這個(gè)鏈接另一個(gè)功能就是可以給自己發(fā)送消息。
/*改變你的按鈕和輸入欄的顏色及字體*/
input,select,textarea{color:green;font-size:14px;font-family:Tahoma,黑體;border:1px solid green;background-color:black}
textarea{overflow:hidden}
/*留言板添加圖片*/
#spBCmtText{border: 6px solid #000000 ;color:#ffffff;background:url(http://hi.baidu.com/0454ldk) no-repeat;overflow-y :scroll;height:150px}
圖片最佳尺寸是503*153,6px表示評(píng)論邊框的寬度,#000000 表示評(píng)論邊框的顏色。
/*百度空間添加QQ在線*/
鏈接地址http://wpa.qq.com/msgrd?V=1&Uin=號(hào)碼 QQ
值得注意的是,一定要將xxxx !important 這句放置在另一句之上,上面已經(jīng)提過
Windows關(guān)機(jī)效果分析
使用Windows系統(tǒng)的用戶在關(guān)機(jī)的時(shí)候,出現(xiàn)的界面只允許用戶選擇關(guān)機(jī)、注銷或取消動(dòng)作,而桌面上的程序都不能使用,并且屏幕呈現(xiàn)灰色狀態(tài)。
本例將仿照這種高亮顯示的效果在網(wǎng)頁上實(shí)現(xiàn).
在網(wǎng)頁上運(yùn)用這種關(guān)機(jī)效果有什么好處呢?首先,由于單擊某一鏈接后,將用戶此時(shí)不可用的操作隱藏在后臺(tái),將可用的操作放在屏幕最上層,并高亮顯示,可以避免用戶的誤操作。其次,將信息高亮顯示,也可以提醒用戶應(yīng)該注意的事項(xiàng)。
網(wǎng)頁中實(shí)現(xiàn)關(guān)機(jī)效果分析
在網(wǎng)頁中實(shí)現(xiàn)這種效果的原理很簡單。創(chuàng)建兩個(gè)圖層,一個(gè)為遮蓋層,覆蓋整個(gè)頁面,并且顯示為灰色;另一個(gè)圖層作為高亮顯示的部分,在遮蓋層的上方,這可通過設(shè)置圖層的z-index屬性來設(shè)置。當(dāng)取消關(guān)機(jī)效果后,只需將這兩個(gè)圖層元素在頁面中刪除即可。
以下代碼實(shí)現(xiàn)顯示關(guān)機(jī)效果。
以下是引用片段:
<html> |
在使用IE瀏覽器時(shí),要先將網(wǎng)頁中的<select>元素隱藏起來。如以下代碼可以用于隱藏頁面所有的<select>元素。
selects = document.getElementsByTagName('select');
以下是引用片段:
for(i = 0; i < selects.length; i++) { |
以下是引用片段:
<html> |
以下是引用片段:
#lightbox { |
以下是引用片段:
snap_preview_added="no">操作系統(tǒng)。 |
//網(wǎng)頁加載調(diào)用initialize和getBrowserInfo方法 |
var lightbox = Class.create(); |
服務(wù)器端首先獲得查詢中的“id”值,如果該值為null或?yàn)榭眨瑒t設(shè)置為默認(rèn)值。然后判斷該值,并且返回相應(yīng)的一段字符串信息。處理請求的getInfohtml" class="wordstyle">jsp頁面代碼如下:
以下是引用片段:
<%@ page language="java" import="java.util.*"%> |
DECORATION: none
}
.p_total {
BORDER-RIGHT: #666688 0px solid; BORDER-TOP: #666688 1px solid; FONT-WEIGHT: bold; BORDER-LEFT: #666688 1px solid;
BORDER-BOTTOM: #666688 1px solid; BACKGROUND-COLOR: #f2f3f7
}
.p_pages {
BORDER-RIGHT: #666688 1px solid; BORDER-TOP: #666688 1px solid; FONT-WEIGHT: bold; VERTICAL-ALIGN: middle; BORDER-
LEFT: #666688 1px solid; MARGIN-RIGHT: 1px; BORDER-BOTTOM: #666688 1px solid; BACKGROUND-COLOR: #f2f3f7
}
.p_num {
BORDER-RIGHT: #666688 1px solid; BORDER-TOP: #666688 1px solid; VERTICAL-ALIGN: middle; BORDER-LEFT: #666688 1px
solid; MARGIN-RIGHT: 1px; BORDER-BOTTOM: #666688 1px solid; BACKGROUND-COLOR: #ffffff
}
A.p_num:hover {
BORDER-RIGHT: #666688 1px solid; BORDER-TOP: #666688 1px solid; BORDER-LEFT: #666688 1px solid; BORDER-BOTTOM:
#666688 1px solid; BACKGROUND-COLOR: #f2f3f7; TEXT-DECORATION: none
}
.p_redirect {
BORDER-RIGHT: #666688 1px solid; BORDER-TOP: #666688 1px solid; FONT-SIZE: 13px; BORDER-LEFT: #666688 1px solid;
MARGIN-RIGHT: 1px; BORDER-BOTTOM: #666688 1px solid; BACKGROUND-COLOR: #ffffff
}
A.p_redirect:hover {
BORDER-RIGHT: #666688 1px solid; BORDER-TOP: #666688 1px solid; BORDER-LEFT: #666688 1px solid; BORDER-BOTTOM:
#666688 1px solid; BACKGROUND-COLOR: #f2f3f7; TEXT-DECORATION: none
}
.p_curpage {
BORDER-RIGHT: #666688 1px solid; BORDER-TOP: #666688 1px solid; FONT-WEIGHT: bold; VERTICAL-ALIGN: middle; BORDER-
LEFT: #666688 1px solid; COLOR: #666677; MARGIN-RIGHT: 1px; BORDER-BOTTOM: #666688 1px solid; BACKGROUND-COLOR: #dddde4
}
</style>
</head>
<body>
<div class="p_bar">
<a class="p_total"> 270 </a><a class="p_pages"> 1/9 </a><a class="p_curpage">1</a><a href="thread-
2486328-2-1.html" class="p_num">2</a><a href="thread-2486328-3-1.html" class="p_num">3</a><a href="thread-2486328-4-1.html"
class="p_num">4</a><a href="thread-2486328-5-1.html" class="p_num">5</a><a href="thread-2486328-6-1.html"
class="p_num">6</a><a href="thread-2486328-7-1.html" class="p_num">7</a><a href="thread-2486328-8-1.html"
class="p_num">8</a><a href="thread-2486328-9-1.html" class="p_num">9</a><a href="thread-2486328-2-1.html"
class="p_redirect">››</a>
</div>
</body>
</html>
一般來說,網(wǎng)頁的背景色應(yīng)該柔和一些、素一些、淡一些,再配上深色的文字,使人看起來自然、舒暢。而為了追求醒目的視覺效果,可以為標(biāo)題使用較深的顏色。下面是我做網(wǎng)頁和瀏覽別人的網(wǎng)頁時(shí),對(duì)網(wǎng)頁背景色和文字色彩搭配積累的經(jīng)驗(yàn),這些顏色可以做正文的底色,也可以做標(biāo)題的底色,再搭配不同的字體,一定會(huì)有不錯(cuò)的效果,希望對(duì)大家在制作網(wǎng)頁時(shí)有用。
BgcolorΚ″#F1FAFA″———做正文的背景色好,淡雅
BgcolorΚ″#E8FFE8″———做標(biāo)題的背景色較好
BgcolorΚ″#E8E8FF″———做正文的背景色較好,文字顏色配黑色
BgcolorΚ″#8080C0″———上配黃色白色文字較好
BgcolorΚ″#E8D098″———上配淺藍(lán)色或藍(lán)色文字較好
BgcolorΚ″#EFEFDA″———上配淺藍(lán)色或紅色文字較好
BgcolorΚ″#F2F1D7″———配黑色文字素雅,如果是紅色則顯得醒目
BgcolorΚ″#336699″———配白色文字好看些
BgcolorΚ″#6699CC″———配白色文字好看些,可以做標(biāo)題
BgcolorΚ″#66CCCC″———配白色文字好看些,可以做標(biāo)題
BgcolorΚ″#B45B3E″———配白色文字好看些,可以做標(biāo)題
BgcolorΚ″#479AC7″———配白色文字好看些,可以做標(biāo)題
BgcolorΚ″#00B271″———配白色文字好看些,可以做標(biāo)題
BgcolorΚ″#FBFBEA″———配黑色文字比較好看,一般作為正文
BgcolorΚ″#D5F3F4″———配黑色文字比較好看,一般作為正文
BgcolorΚ″#D7FFF0″———配黑色文字比較好看,一般作為正文
BgcolorΚ″#F0DAD2″———配黑色文字比較好看,一般作為正文
BgcolorΚ″#DDF3FF″———配黑色文字比較好看,一般作為正文
淺綠色底配黑色文字,或白色底配藍(lán)色文字都很醒目,但前者突出背景,后者突出文字。紅色底配白色文字,比較深的底色配黃色文字顯得非常有效果。
此文只是起一個(gè)“拋磚引玉”的作用,大家可以發(fā)揮想象力,搭配出更有新意、更醒目的顏色,使網(wǎng)頁更具有吸引力。
if(extension == "*")
?contentType = "application/octet-stream";
else if(extension == "323")
?contentType = "text/h323";
else if(extension == "ACX")
?contentType = "application/internet-property-stream";
else if(extension == "AI")
?contentType = "application/postscript";
else if(extension == "AIF")
?contentType = "audio/x-aiff";
else if(extension == "AIFC")
?contentType = "audio/x-aiff";
else if(extension == "AIFF")
?contentType = "audio/x-aiff";
else if(extension == "ASF")
?contentType = "video/x-ms-asf";
else if(extension == "SR")
?contentType = "video/x-ms-asf";
else if(extension == "SX")
?contentType = "video/x-ms-asf";
else if(extension == "AU")
?contentType = "audio/basic";
else if(extension == "AVI")
?contentType = "video/x-msvideo";
else if(extension == "AXS")
?contentType = "application/olescript";
else if(extension == "BAS")
?contentType = "text/plain";
else if(extension == "BCPIO")
?contentType = "application/x-bcpio";
else if(extension == "BIN")
?contentType = "application/octet-stream";
else if(extension == "BMP")
?contentType = "image/bmp";
else if(extension == "C")
?contentType = "text/plain";
else if(extension == "CAT")
?contentType = "application/vnd.ms-pkiseccat";
else if(extension == "CDF")
?contentType = "application/x-cdf";
else if(extension == "CER")
?contentType = "application/x-x509-ca-cert";
else if(extension == "CLASS")
?contentType = "application/octet-stream";
else if(extension == "CLP")
?contentType = "application/x-msclip";
else if(extension == "CMX")
?contentType = "image/x-cmx";
else if(extension == "COD")
?contentType = "image/cis-cod";
else if(extension == "CPIO")
?contentType = "application/x-cpio";
else if(extension == "CRD")
?contentType = "application/x-mscardfile";
else if(extension == "CRL")
?contentType = "application/pkix-crl";
else if(extension == "CRT")
?contentType = "application/x-x509-ca-cert";
else if(extension == "CSH")
?contentType = "application/x-csh";
else if(extension == "CSS")
?contentType = "text/css";
else if(extension == "DCR")
?contentType = "application/x-director";
else if(extension == "DER")
?contentType = "application/x-x509-ca-cert";
else if(extension == "DIR")
?contentType = "application/x-director";
else if(extension == "DLL")
?contentType = "application/x-msdownload";
else if(extension == "DMS")
?contentType = "application/octet-stream";
else if(extension == "DOC")
?contentType = "application/msword";
else if(extension == "DOT")
?contentType = "application/msword";
else if(extension == "DVI")
?contentType = "application/x-dvi";
else if(extension == "DXR")
?contentType = "application/x-director";
else if(extension == "EPS")
?contentType = "application/postscript";
else if(extension == "ETX")
?contentType = "text/x-setext";
else if(extension == "EVY")
?contentType = "application/envoy";
else if(extension == "EXE")
?contentType = "application/octet-stream";
else if(extension == "FIF")
?contentType = "application/fractals";
else if(extension == "FLR")
?contentType = "x-world/x-vrml";
else if(extension == "GIF")
?contentType = "image/gif";
else if(extension == "GTAR")
?contentType = "application/x-gtar";
else if(extension == "GZ")
?contentType = "application/x-gzip";
else if(extension == "H")
?contentType = "text/plain";
else if(extension == "HDF")
?contentType = "application/x-hdf";
else if(extension == "HLP")
?contentType = "application/winhlp";
else if(extension == "HQX")
?contentType = "application/mac-binhex40";
else if(extension == "HTA")
?contentType = "application/hta";
else if(extension == "HTC")
?contentType = "text/x-component";
else if(extension == "HTM")
?contentType = "text/html";
else if(extension == "HTML")
?contentType = "text/html";
else if(extension == "HTT")
?contentType = "text/webviewhtml";
else if(extension == "ICO")
?contentType = "image/x-icon";
else if(extension == "IEF")
?contentType = "image/ief";
else if(extension == "III")
?contentType = "application/x-iphone";
else if(extension == "INS")
?contentType = "application/x-internet-signup";
else if(extension == "ISP")
?contentType = "application/x-internet-signup";
else if(extension == "JFIF")
?contentType = "image/pipeg";
else if(extension == "JPE")
?contentType = "image/jpeg";
else if(extension == "JPEG")
?contentType = "image/jpeg";