twenty fourteen主题修改记录

1、增大页面宽

登录后台——外观——编辑,修改style.css,搜索page-content
看到写死的最大宽度是474px,“max-width: 474px;” ,修改为700px。但是由于只改了page-content的宽度会造成标题、评论、推荐文章的错位,所以还要搜索474px,全部改成700px

2、修改标题栏颜色

搜索site-header,找到“ background-color: #000; ”,改成适合的颜色,比如灰色#808080

3、主题居中显示

TwentyFourteen主题默认是左对齐,同样修改style.css,找到“* 1.0 Reset”,将“ margin: 0 ”改为“margin: auto”

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
border: 0;
font-family: inherit;
font-size: 100%;
font-style: inherit;
font-weight: inherit;
/*margin: 0;*/
margin: auto;
outline: 0;
padding: 0;
vertical-align: baseline;
}

发表评论

电子邮件地址不会被公开。 必填项已用*标注

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!: