周末两天闲着没事,绞尽脑汁也憋不出什么文章来,所以就只能折腾一下几个网站的模板了。人都是挑剔的,视觉效果这东西吧,你千万别盯着看太久,看久了就越看越丑了。加上用的外国人做的模版,对字体和排版之类的诸多不满意,也一一自己调整了下。
边栏宽度:
默认主题的边栏宽度是220px,不尴不尬的宽度。而一般的组件和广告什么的要么是提供200px的,要么是提供250px的,这就造成了边栏空间的浪费,而且经常有参差不齐的状况,很难看。调整的话,要考虑到其他元素的排布,需要修改几处代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#container { margin: 0 -270px 0 0;/*----原来为-240px----*/ } #primary, #secondary { width: 250px;/*----原来为220px----*/ } /* =Structure -------------------------------------------------------------- */ /* The main theme structure */ #access .menu-header, div.menu, #colophon, #branding, #main, #wrapper { width: 980px;/*----原宽度940----*/ } #footer-widget-area .widget-area { width: 250px;/*----原来为220px----*/ } /* This is the custom header image */ #branding img { width:980px;/*----原宽度940----*/ } /* =Menu -------------------------------------------------------------- */ #access { width: 980px;/*----原宽度940----*/ } |