gpt4 book ai didi

jquery-ui - 根据jquerymobile中的纵向和横向调整图像大小?

转载 作者:行者123 更新时间:2023-12-04 22:08:07 25 4
gpt4 key购买 nike

我必须在标题和背景上添加图像。是否可以根据屏幕方向(纵向和横向)设置图像自动调整大小。我将图像设置为纵向分辨率,但是当我将屏幕更改为横向时,图像未调整大小。谁能给我一些指导方针?

最佳答案

jQuery Mobile 内置了对此的支持。有两个Orientation Classes取决于当前的屏幕方向:

.portrait {
/* portrait orientation changes go here! */
}
.landscape {
/* landscape orientation changes go here! */
}

或者如果你想要一个 javascript 事件,你可以绑定(bind)到 orientationchange .

关于jquery-ui - 根据jquerymobile中的纵向和横向调整图像大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5141136/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com