DedeCMS栏目属性如果设置成频道封面后,会发现其中的频道头条标题居左显示而非居中显示,解决方法如下:
编辑/templets/style/page.css文件
找到
.channel .topcommand .onenews h2{
display:block;
height:28px;
line-height:25px;
在t.channel .topcommand .onenews h2{ 下面加上ext-align:center; 即文本居中显示的意思,估计是DedeCMS开发人员的一时疏忽,忘了加了,呵呵……
修改后为
.channel .topcommand .onenews h2{
text-align:center;
display:block;
height:28px;
line-height:25px;
然后生成更新栏目,你再看,频道头条标题已经居中显示了。
效果演示页面:http://www.3haoweb.cn/a/pc/