我想要可點擊的div適合iphone 6的屏幕尺寸(每行一個)和ipad兩個可點擊的div在一行中。任何人都可以告訴我我是如何實現這一任務的。提前感謝。 如何調整iphone和ipad屏幕的可點擊的div寬度和高度?
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
</head>
<body>
<section id="MainSection" class ="programs">
<div class="container">
<div class="row">
<div class="section-title">
<h2>
<a id="main_content" href="./secionOne">Section one</a>
</h2>
</div>
<div class ="image">
<a href="..." style="display: block; height: 100%">
<img src="./1.jpg" alt=".." />
</a>
</div>
<div class ="image">
<a href="..." style="display: block; height: 100%">
<img src="./2.jpg" alt=".." />
</a>
</div>
</div>
</div>
</section>
</body>
</html>
您是否使用Bootstrap等網格系統進行過研究? – jonmrich