整体模版:烟雾迷情·男版(新浪BLOG)
模板说明:1。模板只在博客首页有效,新打开的窗口还是系统模板。
2。为达到最佳效果请选用系统模板中的“野蛮丫头”或“灰色轨迹”。
3。使用此模板前,请把之前加的特效全部删除或隐藏。
4。使用此模板后,可以自行添加挂件,鼠标,透明FLASH等。
5。添加此模板具体操作步骤:
①控制面板→定制我的模板→更新模板→选择“野蛮丫头”模板,设置好后点击保存。
②控制面板→首页内容维护→自定义空白面板→新增→显示源代码前画√→把下面代码全部复制粘贴过去→保存(别忘了给这个空白模块起个名字)
③定制我的首页→添加页面模块→选中第②步面板的名字→添加保存
代码:
[code]<STYLE type=text/css>
.logo,.menu,.feeds .up,.feeds .down,.feeds .function,.links .up,.links .down,.links .mid,.photo .mid,.label .mid,.calendar .mid,.callboard .up,.callboard .down,.callboard .mid,.bodyBg,.bodyBottom,.sysW770,.gbook .up,.gbook .down,.feeds .page,.links.more,.add,.add .ico,.gbook .sysHand .up,.gbook .sysHand .down,.gbook .post,.aList .sysHand .up,.aList .sysHand .down,.gbook .post{background:#transparent;}
body {background:url("http://s11.album.sina.com.cn/pic/4c1f1a5202000k0m") repeat fixed!important;}
.banner
{background:url("http://s9.album.sina.com.cn/pic/4c1f1a5202000k0k") no repeat no scroll!mportant;}
.banner
{height:213px}
.bodyTop,.foot,.banner .link td,#labelFM000011{display:none;}
.feeds .page a,.links .desc,.feeds .time,.feeds .function a,.feeds .text a,.links td a,.photo .infoText a,.links .text,.feeds .title a,.menu .text a,.menu .text,.menu .home a,.callboard .title,.add a{color:#fff;}
.feeds .text{color:#fff;font-size:12px;}
.gbook .text,.gbook .postFSet,.gbook .postFSet legend,.gbook .postFSet,.gbook .text a,.aList .down,.aList .up,.aList .list a,.aList .page a,.gbook .page a,.gbook .title,.gbook a,.serial .W336 a,.serial .title,.serial .list a,.serial .list td,.serial .W336,.serial .total{color:#fff !important;}
.gbook .aAuthor,.gbook .aText{color:#999 !important;}
.links .up,.feeds .title,.callboard .up{text-align:center;}
BODY { SCROLLBAR-FACE-COLOR:#000;
SCROLLBAR-ARROW-COLOR:#fff;
SCROLLBAR-3DLIGHT-COLOR:#999;
SCROLLBAR-SHADOW-COLOR:#999;
SCROLLBAR-TRACK-COLOR:#000;}
.banner .title td{font-family:楷体_GB2312;}
.banner .title td{font-size:30px;}
.banner .title td{FILTER: glow(color=ffffff,direction=4);}
.banner .title td{color:#000;}
.banner .title{margin-left:70px;margin-top:10px;font-weight:bold;}
.banner table{background:#transparent;filter:alpha(opacity=85);border:0px solid #000;}
.bodyTop{width:730px;}
.bodyBg{width:730px;}
.feeds .text{width:500px;}
.body{margin-top:0px;}
.bodybg{margin-right:160px;}
.feeds .itemBox table{width:350px;}
.menu{width:730px;}
.gbook .title,.serial .up,.serial .down{background:#transparent !important;}
.serial .listTitle a{width:450px !important;}
</STYLE>[/code]配合系统模版灰色轨迹截图:
[attach]11610[/attach]
配合系统模版野蛮丫头截图
[attach]11611[/attach]
注意:[color=red]本模板版权规 诡异猫猫所有[/color]
[[i] 本帖最后由 xbshui0 于 2007-10-25 16:48 编辑 [/i]] 终于有新浪模板了,支持一下! 这么好的模板,一定要支持。我大致的翻译一下吧。献丑了:corner[code] <STYLE type=text/css>[/code]这个是样式表的开头,固定格式了。[code] .logo,.menu,.feeds .up,.feeds .down,.feeds .function,.links .up,.links .down,.links .mid,.photo .mid,.label .mid,.calendar .mid,.callboard .up,.callboard .down,.callboard .mid,.bodyBg,.bodyBottom,.sysW770,.gbook .up,.gbook .down,.feeds .page,.links.more,.add,.add .ico,.gbook .sysHand .up,.gbook .sysHand .down,.gbook .post,.aList .sysHand .up,.aList .sysHand .down,.gbook .post{background:#transparent;}[/code]这一段表示,将上面的位置的背景设置为透明。[code] body {background:url("http://s11.album.sina.com.cn/pic/4c1f1a5202000k0m") repeat fixed!important;}[/code]这句话的意思是把[img]http://s11.album.sina.com.cn/pic/4c1f1a5202000k0m[/img][url=http://s11.album.sina.com.cn/pic/4c1f1a5202000k0m]http://s11.album.sina.com.cn/pic/4c1f1a5202000k0m[/url]这个图片作为页面的底图,repeat fixed!important表示将这个背景图循环显示,简单的说,就是鼠标无论怎样移动滚动条,这个图片始终不会被移动。所以如果想要还个底图,可以把这个图片的位置换成一个自己希望设置的图片。[code]
.banner
{background:url("http://s9.album.sina.com.cn/pic/4c1f1a5202000k0k") no repeat no scroll!mportant;}
.banner
{height:213px}[/code]这段的意思是,把banner(也就是博客最上面部分)换成[img]http://s9.album.sina.com.cn/pic/4c1f1a5202000k0k[/img][url=http://s9.album.sina.com.cn/pic/4c1f1a5202000k0k]http://s9.album.sina.com.cn/pic/4c1f1a5202000k0k[/url]这个图片,并且把这个位置的大小设置成213像素。[color=red]要注意的是:no repeat no scroll !important ,上面的代码少了一个i[/color],我没试验过,不过估计99%是少打了这个字母,请纠正。 no scroll的意思是,不出现滚动条,因为这个图片本身的高度是213像素,但是表格之间并不是无缝隙组合的,所以如果没有这句,可能就会出现很难看的滚动条。 这个也是可以随自己的喜欢来设置的。比如有一张尺寸为 780 X 260 的图片, 那么相应的代码就要改写成[code]
.banner
{background:url("图片的地址") no repeat no scroll!mportant;}
.banner
{height:260px;width:780px;}[/code]接下来,[code]
.bodyTop,.foot,.banner .link td,#labelFM000011{display:none;}[/code]这个的意思是,页面的顶端和底端,还有banner链接的表格和label 不显示。这样就不会出现很难看的空隙。[code] .feeds .page a,.links .desc,.feeds .time,.feeds .function a,.feeds .text a,.links td a,.photo .infoText a,.links .text,.feeds .title a,.menu .text a,.menu .text,.menu .home a,.callboard .title,.add a{color:#fff;}[/code]这段意思是,把上面这些位置的文字颜色设置成 “白色”,新浪blog的颜色做了一定的精简。#fff;表示白色,#fff这个可以是从#000 ~ #fff 之间的任意组合。当然,这里不仅可以设置字体的颜色,也可以设置字体的大小,字体的种类等等。就如同下面几段代码:[code]
.feeds .text{color:#fff;font-size:12px;}
.gbook .text,.gbook .postFSet,.gbook .postFSet legend,.gbook .postFSet,.gbook .text a,.aList .down,.aList .up,.aList .list a,.aList .page a,.gbook .page a,.gbook .title,.gbook a,.serial .W336 a,.serial .title,.serial .list a,.serial .list td,.serial .W336,.serial .total{color:#fff !important;}
.gbook .aAuthor,.gbook .aText{color:#999 !important;}
.links .up,.feeds .title,.callboard .up{text-align:center;}[/code]font-size:12px表示了字体的大小是12, text-align:center表示 文章标题的对其方式为居中,如果设置为left,就是左对齐,right是右对齐。[code] BODY { SCROLLBAR-FACE-COLOR:#000;
SCROLLBAR-ARROW-COLOR:#fff;
SCROLLBAR-3DLIGHT-COLOR:#999;
SCROLLBAR-SHADOW-COLOR:#999;
SCROLLBAR-TRACK-COLOR:#000;}[/code]这段的意思是对滚动条的设置, SCROLLBAR-FACE-COLOR:#000表示滚动条表面颜色是黑色,SCROLLBAR-ARROW-COLOR:#fff;表示滚动条向上、向下的小箭头的颜色为白色,SCROLLBAR-3DLIGHT-COLOR:#999;表示滚动条的移动块的高光部分(上边和左边边框)是 深灰色,SCROLLBAR-SHADOW-COLOR:#999;表示滚动条的移动块的阴影部分(下边和右边边框或斜面)是 深灰色,SCROLLBAR-TRACK-COLOR:#000;表示滚动条移动块意外的颜色是 黑色。[code]
.banner .title td{font-family:楷体_GB2312;}
.banner .title td{font-size:30px;}
.banner .title td{FILTER: glow(color=ffffff,direction=4);}
.banner .title td{color:#000;}
.banner .title{margin-left:70px;margin-top:10px;font-weight:bold;}
.banner table{background:#transparent;filter:alpha(opacity=85);border:0px solid #000;}[/code]这段的设置的内容是对应图片中,“诡异猫猫模板展示”这几个字的效果。font-family:楷体_GB2312;表示字体样式,font-size:30px;表示字体大小,FILTER: glow(color=ffffff,direction=4);表示字体的滤镜特效为发光(颜色为白色,发光的程度是4,发光的程度越高,“诡异猫猫模板展示”外面那层白圈就越宽),color:#000;表示“诡异猫猫模板展示”这几个字的颜色是黑色。margin-left:70px;margin-top:10px;font-weight:bold;表示“诡异猫猫模板展示”这几个字的位置是:距离模块左边70像素,距离模块顶部10像素,且字体的效果是加粗。[code] .bodyTop{width:730px;}
.bodyBg{width:730px;}
.feeds .text{width:500px;}
.body{margin-top:0px;}
.bodybg{margin-right:160px;}
.feeds .itemBox table{width:350px;}
.menu{width:730px;}
.gbook .title,.serial .up,.serial .down{background:#transparent !important;}
.serial .listTitle a{width:450px !important;}[/code]这段就是设置各个模块的位置等信息。[code]
</STYLE>[/code]最后这个是结尾标志,必须要加。
CSS是一个很有趣的东西,刚开始的时候,我们不用尝试自己来写CSS,适当的理解别人写好的东东,修改修改自己来用就可以了。
[[i] 本帖最后由 openSUSE 于 2007-10-26 00:11 编辑 [/i]] 谢谢 楼上的分析
真是学了 不少东西啊
我的游戏王子
we supply the following products in large quantity:psp ac adapter psp car charger Hori light crystal Filter PSP Power Refill & Data Transfer 2 in 1 Cable Custom Case for PSP PSP airform pouch bag psp case sony psp playgear street psp console plastic case psp aluminum case PSP Portable Pouch PSP Soft Rubber Joystick PSP to USB cable PSP Charge&Data Transfer 2 in 1 Retractable cable PSP Folded Light Magnifier PSP Grip SONY PSP shell PSP replacement part PSP 4IN1 Speaker Charger Stand with Remote Controler PSP Speaker sony psp headphone with remote control PSP wireless earphone SONY PSP 2200MA Charger PSP 4300ma Charger PSP Charger stand with speaker PSP Charge Stand sony psp car charger PSP 2GB Memory card psp Extra button Family psp Extra Button Kit sony psp battery charger SONY PSP leather Carry Bag psp battery 1800ma 3600ma battery for psp psp battery 9800ma NDS ac adapter NDS car charger NDS Battery Emergency Charger for NDS/SP NDS Screen Pen NDS Shell NDS screen Guard NDS Light Magnifier NDS Console Shell DS Firecard NDS lite AC Adaptor NDS Lite Lithium Battery NDS Lite car charger NDS Lite Smart Case NDS Lite Stylus Pen NDS Lite Silicon sleeve NDS Lite plastic case NDS LITE phonic headset NDS Lite Hori screen Guard Protect Mask for NDS Lite Smart Case DS Lite NDS LITE Stylus with Light NDS Lite to USB cable Crystal case for NDS Lite NDS Lite play stand NDS LITE/NDS 2IN1 UBB charging cable ps one adaptor ps one 1G memory card playstation 2 network adapter ps2 70000 car charge/adapter PS2 16M Memory Cards PS2 32M Memory Cards PS2 70000 Console Vertical Stand RF 2.4G Wireless Controllers PS2 70000 Dust Preventor Cover PS2 slim cooling fan PS RGB SCART CABLE+AVBOX PS extension cable ps2 bag PS2 70000 DVD Remote control PS2 AV cable PS2 Little Cooling Fan ps3 big ps3 AV cable ps3 component cable ps3 RGB Cable PS3 S-Video AV Cable PS3/USB Charge Cable ps3 Vertical Stand ps3 Shock Protector PS3 Controller Battery PS3 DVD Remote Controller ps3 transparency cover PS3 HDMI to HDMI Cable Xbox Game Controller XBOX bag XBOX Smart box XBOX360 ac adaptor XBOX 360 Component Cable in black XBOX 360 RGB Cable XBOX360 Bag XBOX 360 S-AV cable XBOX360 VGA HD AV Cable XBOX360 Shock Protector xbox360 battery XBOX360 Vertical Stand XBOX 360 Thermostatic Cooling Adaptor XBOX360 cool fan xbox360 battery 3600ma xbox360 momory card 64MB XBOX360 Game Disc Stand XBOX360 Remote Controller XBOX 360 Headphone with Microphone psp2000 Console plastic lase WII ac adapter WII bag WII Component cable wii 8M memory card wii 16M memory card wii Gun Hazard wii battery (1800MA)/ Wii Rechargeable Battery pack wii USB fan Infrared Ray Inductor For Wii Console Wii Rechargeable Battery & Charger Stand Wii S-Video AV Cable Wii Controller Handle Wii silicon protector wii 4in1 sport pack wii racing wheel£¨white£© Wii transparent cover for controller wii 64M memory card wii Anglong joypad wii 128M memory card wii boxing glove wii Console shell wii RGB cable + AV wii 32M memory card wii revolving recelver stand wii combat pack wii AV cable wii 5in1 sport pack wii double charge station wii car charge GBA/SP ac adaptor GBA/SP shell GBA/SP ac adaptor GBM ac adaptor GBM battery pack GBM car adaptor GBM Magnifier GBM Retractable Earset GBM to USB cable GBM EVA Carry Bag GBA/SP battery NGC ac Adaptor Game Cabe joypads Game Cabe S-Video+AV cable Game Cube 4MB Memory Cards Game Cabe 8MB memory card Game Cabe 16MB memory card Game Cabe 32MB memory card Game Cabe 64MB memory card Game Cube 128MB Memory Cards wii key/chip Modbo 4.0 XENO GC Chip Apple 75k chip ps2 slim chip 75k Messiah 750 Anyversion chip xkey360 for Xbox 360 Aladdin xt 4032 for xbox v1.0-v1.6b DUO X3 Super Aladdin Live chip Aladdin family programmer Modbo V3.0 Modbo 750 R4 SC Lite Rumble Superkey combo 有点深奥[yct63] [yct63] [yct63]
页:
[1]