Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.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
Php 如何使帖子缩略图成为转盘中每个项目的背景图像_Php_Image_Background_Carousel - Fatal编程技术网

Php 如何使帖子缩略图成为转盘中每个项目的背景图像

Php 如何使帖子缩略图成为转盘中每个项目的背景图像,php,image,background,carousel,Php,Image,Background,Carousel,我有一个带四个项目的旋转木马,每个项目都应该显示一个覆盖整个背景的图像。如何将后期缩略图图像设置为背景图像,因为它显然无法调用css CSS HTML/PHP 我们提供的 update with是否可以为其指定一个类?问题是,默认情况下,帖子缩略图不是背景图像。所以我想有必要找到另一种方法。。试试这个 #services .item:nth-child(1) { background-position: center; background-repeat: no-repeat; back

我有一个带四个项目的旋转木马,每个项目都应该显示一个覆盖整个背景的图像。如何将后期缩略图图像设置为背景图像,因为它显然无法调用css

CSS

HTML/PHP

我们提供的

  • update with是否可以为其指定一个类?问题是,默认情况下,帖子缩略图不是背景图像。所以我想有必要找到另一种方法。。试试这个
    #services .item:nth-child(1) {
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll !important;
    background-size: cover !important;
    width: 100%; }