Я первый плакат, и я очень не уверен, где разместить этот вопрос. Непрерывно варьируется, поскольку ширина просмотра изменяется, но не по ступени.@media screen and (min-width: 2000px), {
.img-photos {
max-width: 70%;
}
}
< /code>
@media screen and (min-width: 1200px), {
.img-photos {
max-width: 80%;
}
}
< /code>
@media screen and (min-width: 500px), {
.img-photos {
max-width: 90%;
}
}
< /code>
where the abovementioned implementation results in abrupt and jerky image resizing as the viewport width crosses the threshold values, I want the images' max-width value to gradually scale from 90% to 70% as the viewport width grows and or 70% to 90% as the viewport width shrinks.
The idea is that I want to use a greater percentage of viewport width on small displays and a lesser percentage of viewport width on larger displays, and I want to avoid the abrupt change when the display width crosses the threshold values.
Is that possible with CSS and HTML?
Has the functionality been worked out with more advanced scripting?
I searched for answers or other instances where a similar question was asked but could not craft a search query that brought up any pertinent info.
Thank you for any advice you may share.
Подробнее здесь: https://stackoverflow.com/questions/794 ... -that-scal
Обра у Адаптивного размера изображений: можно ли кодировать максимальную ширину для процентного значения, которое масшта ⇐ Html
Программисты Html
1739782394
Anonymous
Я первый плакат, и я очень не уверен, где разместить этот вопрос. Непрерывно варьируется, поскольку ширина просмотра изменяется, но не по ступени.@media screen and (min-width: 2000px), {
.img-photos {
max-width: 70%;
}
}
< /code>
@media screen and (min-width: 1200px), {
.img-photos {
max-width: 80%;
}
}
< /code>
@media screen and (min-width: 500px), {
.img-photos {
max-width: 90%;
}
}
< /code>
where the abovementioned implementation results in abrupt and jerky image resizing as the viewport width crosses the threshold values, I want the images' max-width value to gradually scale from 90% to 70% as the viewport width grows and or 70% to 90% as the viewport width shrinks.
The idea is that I want to use a greater percentage of viewport width on small displays and a lesser percentage of viewport width on larger displays, and I want to avoid the abrupt change when the display width crosses the threshold values.
Is that possible with CSS and HTML?
Has the functionality been worked out with more advanced scripting?
I searched for answers or other instances where a similar question was asked but could not craft a search query that brought up any pertinent info.
Thank you for any advice you may share.
Подробнее здесь: [url]https://stackoverflow.com/questions/79443749/responsive-image-sizing-can-max-width-be-coded-for-a-percentage-value-that-scal[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия