欢迎光临
我们一直在努力

wordpress用elementor模版文章图片不居中


wordpress用elementor做的文章内容页模版,在编辑时设置了图片为居中,正式查看时发现文章图片不居中都是左对齐。
在elementor编辑Post Content属性时,选择高级设置,拉到最下面Custom 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;

}

历史上的今天
3 月
5
    哇哦~~~,历史上的今天没发表过文章哦
赞(0) 打赏
未经允许不得转载:席天卷地个人博客 » wordpress用elementor模版文章图片不居中
分享到: 更多 (0)
标签:

评论 抢沙发

评论前必须登录!

 

QQ :13945502电话:13913571631

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

×
订阅图标按钮