Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
主题融合。css修改[特色产品\u滑块]以使图像居中_Css_Wordpress_Woocommerce - Fatal编程技术网

主题融合。css修改[特色产品\u滑块]以使图像居中

主题融合。css修改[特色产品\u滑块]以使图像居中,css,wordpress,woocommerce,Css,Wordpress,Woocommerce,我正在为我的wordpress站点使用一个主题融合主题。我需要在[featured_products_slider]中将图像居中。我需要使用什么.css修改?您可以通过添加以下css来解决此问题: .products-slider li img { margin-left: auto; margin-right: auto; float: none; } 尽管您应该搜索.products滑块li img类并删除float样式,并在CSS文件中该类所在的位置左右添加这些边

我正在为我的wordpress站点使用一个主题融合主题。我需要在[featured_products_slider]中将图像居中。我需要使用什么.css修改?

您可以通过添加以下css来解决此问题:

.products-slider li img {
    margin-left: auto;
    margin-right: auto;
    float: none;
}

尽管您应该搜索.products滑块li img类并删除float样式,并在CSS文件中该类所在的位置左右添加这些边距。但是这样就可以了。

我看到的图片上的链接看起来像是对准了中心。哦,我明白了,哈哈。只需在html页面上添加align=center,就像这样:这样应该可以,但如果不发送网站的链接,我可以更准确地看到你需要做的事情。谢谢。滑块居中对齐,但其中的图像不对齐。这段代码能帮助解决这个问题吗?如果没有,我可以使网页的生活和发送链接。再次感谢。是的,让它成为现实,这样我可以更好地帮助你。该网站是: