html, body, #space-content, .content-wrap, .iframe-wrap iframe { width: 100%; height: 100%; } body { box-sizing: border-box; /* 兼容 IOS<11.2 */ height: calc(100% - constant(safe-area-inset-bottom)) ; /* 兼容 IOS>11.2 */ height: calc(100% - env(safe-area-inset-bottom)); /* IOS版本<11.2 */ padding-bottom:constant(safe-area-inset-bottom) ; /* IOS版本>=11.2 */ padding-bottom:env(safe-area-inset-bottom) ; } .iframe-wrap { box-sizing: border-box; width: 100%; height: calc(100% - 50px); overflow-y: auto; } /* 业务程序组件 */ .appWindow { width: 100%; height: 100%; } .appWindow-top { position: fixed; left: 0; top: 0; width: 100%; box-sizing: border-box; text-align: center; padding: 0 12px; color: #000; background-color: #fff; height: 46px; line-height: 46px; z-index: 999; box-shadow: 0px 0px 2px rgba(0, 0, 0, .1); } #appWinTitle { font-size: 16px; font-weight: bold; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none } .appWindow-top-btn { position: absolute; right: 12px; top: 7px; font-size: 18px; background-color: #fff; border-radius: 20px; line-height: 28px; border: 1px solid #eaeaea; width: 80px; height: 30px; } .appWindow-top-btn span { vertical-align: middle; margin: 0px 3px; color: #efefef; border-left: 1px solid #efefef; display: inline-block; height: 20px; } .appWindow-top-btn i { vertical-align: middle; font-weight: bold; } .appWindow-top-back { position: absolute; left: 12px; top: 0; font-size: 20px; width: 36px; display: none; color: #333; z-index: 999; } .appWindow-top-btn i:active { color: #999; } .appWindow-iframe, .appWindow-iframe iframe { width: 100%; height: 100%; } .appWindow-iframe { height: calc(100% - 46px); padding-top: 46px; }