201111月29

WordPress默认编辑器图片不居中解决方法

最近用WordPress搭建了个博客,在使用默认编辑器发布图文时,总是遇到图片不能居中的问题,汗!默认编辑器真是太不给力了,在网上研究了一番,终于还是让我找到了解决方法,在这里给大家分享下: 登录WordPress后台“控制面板”-“外观”-“编辑”打开样式表(style.css),在末尾加上以下代码 .aligncenter { display: block; margin-left: auto; margin-right: auto; } .aligncenter p.wp-caption-text {   display: block;   margin-left: auto;   margin-right: auto;   text-align: center; } 文章转自:太原SEO