我用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