wordpress不图片居中解决方法-WordPress主题

摘要:常常有访客过来问一些主题使用中遇到的问题,部分访客在网络里下载了一些三无的主题,上传文章发现自带的图片居中功能无用。需要…

常常有访客过来问一些主题使用中遇到的问题,部分访客在网络里下载了一些三无的主题,上传文章发现自带的图片居中功能无用。需要自己手动加居中代码,这次大挖给大家总结了一段敲及好用的通用式解决图片不居中功能的方法。

在主题的style.css文件中添加以下代码

我把这段代码添加到新主题的style.css里以后,WordPress自带的图片居中功能恢复了。
用WordPress自带的图片居中,以后要是发现某款主题图片无法居中,可以尝试添加这段代码到主题的style.css文件中即可。

来源:http://www.wazhuti.com/755.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_13101.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?