Разбираемся в CSS
Anonymous
Фоновое GIF-изображение CSS не зацикливается с повторением
Сообщение
Anonymous » 10 ноя 2024, 14:50
Фоновое GIF-изображение CSS не зацикливается при повторении. У меня есть следующий код, но он не работает. Оба изображения отображаются поверх другого, но файл gif не зацикливается.
Код: Выделить всё
.decoration {
display: inline-block;
width: 365px;
height: 650px;
margin-top: -10px;
background: url("https://placeholdit.imgix.net/~text?txtsize=34&txt=365%C3%97650&w=365&h=650") no-repeat center;
background-size: cover;
vertical-align: top;
background-position: center center;
}
image-holder {
width: 269px;
height: 477px;
margin: 77px 48px;
background: url("http://bbsimg.ngfiles.com/1/24309000/ngbbs509571c17019a.gif") repeat center;
background-position: center center;
background-size: cover;
}
Подробнее здесь:
https://stackoverflow.com/questions/393 ... ith-repeat
1731239452
Anonymous
Фоновое GIF-изображение CSS не зацикливается при повторении. У меня есть следующий код, но он не работает. Оба изображения отображаются поверх другого, но файл gif не зацикливается. [code].decoration { display: inline-block; width: 365px; height: 650px; margin-top: -10px; background: url("https://placeholdit.imgix.net/~text?txtsize=34&txt=365%C3%97650&w=365&h=650") no-repeat center; background-size: cover; vertical-align: top; background-position: center center; } image-holder { width: 269px; height: 477px; margin: 77px 48px; background: url("http://bbsimg.ngfiles.com/1/24309000/ngbbs509571c17019a.gif") repeat center; background-position: center center; background-size: cover; }[/code] [code] [/code] Подробнее здесь: [url]https://stackoverflow.com/questions/39324349/css-background-gif-image-is-not-looping-with-repeat[/url]