我用sap.m.FormattedText定制了sap.m.CustomTile。我需要这个CustomTile根据显示分辨率调整大小,例如从500像素到320像素。我用于此:使sap.m.CustomTile的分辨率可以调整大小从500px到320px
@media only screen and (max-width: 500px) {
.tileSmall.sapMCustomTile {
width: 80.9vw !important;
height: 80.9vw !important;
}
}
@media only screen and (max-width: 320px) {
.tileSmall.sapMCustomTile {
width: 200px !important;
height: 200px !important;
}
}
我不能使用%,因为它在我的应用程序中表现奇怪。所以我想用vw代替。我做了demo。我想所有的时间保持它,因为它为530px分辨率在:
但是,当分辨率是例如改变417px我:
我得到的分辨率357px:
有什么办法如何锚尾和子页脚(最后两行)?
或如何根据瓷砖高度change间隙的高度(由br标签创建)?
感谢您的任何建议。
谢谢谢尔班。 – Jaro