各位,我下載了一個天氣介面。
放到自己的頁面。 感覺布局挺好,唯一不足就是有點小,想把它放大些。
我用了 viewport, 試了 ,initial-scale=2.5, minimum-scale=2.5 和 都是1 的情況。
發現顯示的頁面沒有變化。兩邊的margin一樣大。螢屏沒有沾滿。
請問,怎么統一放大所有元素。
謝謝。
里面內容顯示有表格 ul li。是這個原因嗎
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="mobile-web-app-capable" content="yes">
<meta name="viewport" id="portviewid" content="width=device-width,initial-scale=2.5, minimum-scale=2.5, maximum-scale=2.5, user-scalable=no">
<style>
* {
margin: 0px;
padding: 0px;
font-family: PingFangSC-Regular, Verdana, Arial, 微軟雅黑, 宋體;
list-style: none;
}
.weather-container {
width: 240px;
height: 260px;
margin: 20px auto;
background: no-repeat;
background-size: auto auto;
border-radius: 5px;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/285098.html
標籤:JavaScript
