能不能设置一个变量把左边的框宽度
supengxu opened this issue · comments
supengxu commented
看文章的时候觉得左边太碍事了,那么大的空间
JaneWardSandy commented
Ryan Wang commented
@JaneWardSandy 嗯 可以自定义样式
KendrickZou commented
在自定义样式处覆盖CSS设置的百分比即可,加起来100%
.content,.page-top { width: 70% !important; } .sidebar { width: 30% !important; }
看文章的时候觉得左边太碍事了,那么大的空间
这么写的话,好像在较窄宽度的时候,page-top 会缩短成 70%,这样 logo、title 和导航栏就不居中了。我是加了这一段:
@media screen and (min-width: 960px) {
.page-top,.content { width:75% !important; }
.sidebar { width: 25% !important; }
}