Линейный градиент iOS не охватывает всю высотуHtml

Программисты Html
Anonymous
Линейный градиент iOS не охватывает всю высоту

Сообщение Anonymous »

Можно ли установить линейный градиент, чтобы он охватывал всю высоту области просмотра?

Код: Выделить всё

html {
height: 100lvh;
background: linear-gradient(0, #18466a 0%, #0e54a5 100%);
/* background-color: #0e54a5; */
}
Setting background-color does work correctly, but the linear-gradient gets cut off and the top and bottom.
This is on iOS 26.
Изображение
< /p>

Подробнее здесь: https://stackoverflow.com/questions/797 ... ull-height

Вернуться в «Html»