gpt4 book ai didi

html - Bootstrap 不为移动设备格式化

转载 作者:行者123 更新时间:2023-11-28 09:13:41 26 4
gpt4 key购买 nike

所以我正在尝试自学如何使用 Bootstrap ,但出于某种原因,我无法让网站在移动设备上显示时正确格式化。调整浏览器大小时网站格式正确,但模拟移动设备时格式不正确。

<meta name="viewport" content="width=device-width, initial-scale=1.0">


<link href="bootstrap.min.css" rel="stylesheet" >

</head>

<body>

<div class="container-fluid">
<h1>HERE IS WHERE THE CONTAINER IS. </h1>
<div class="row-fluid">

<div class="col-lg-4 col-md-4 col-sm-4">
<h2>Paragraph 1</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin rutrum leo ut posuere suscipit. Suspendisse sed ex venenatis, tempus quam sit amet, porta sapien. Maecenas in nibh leo. In elementum eleifend odio, id pellentesque justo. Cras vitae placerat mauris. Aliquam erat volutpat. Integer faucibus eget nulla eget mollis. Pellentesque interdum vitae purus ut venenatis. Fusce hendrerit ultricies dignissim.</p>
</div><!--col-lg-4 col-md-4 col-sm-4-->

<div class="col-lg-4 col-md-4 col-sm-4">
<h2>Paragraph 2</h2>
<p>Duis elementum quam sit amet ante imperdiet, id bibendum nunc finibus. Donec et semper quam, et tempus tellus. Nullam quis nisl eu sem sodales consectetur. Donec ornare urna elit, in euismod leo feugiat eget. In eu placerat tellus. Nullam et tristique purus. Sed ut accumsan ipsum, nec semper mauris.</p>
</div><!--col-lg-4 col-md-4 col-sm-4-->

<div class="col-lg-4 col-md-4 col-sm-4">

<h2>Paragraph 3</h2>
<p>Mauris euismod massa a gravida posuere. Etiam placerat euismod est. Nam sed scelerisque elit. Mauris id ultrices enim. Nulla eu justo eget tellus vestibulum lacinia non eu augue. Maecenas porta purus vitae vehicula mattis. Nam auctor euismod ornare. Morbi eleifend luctus varius. Sed non nisl porta, vehicula elit sed, rhoncus felis. Aliquam ac elementum nunc. Integer blandit porta nisi, et venenatis nibh. Donec velit lorem, aliquet vel lorem in, efficitur tempus leo. Nulla facilisi. Nam vel malesuada mauris. Vivamus leo libero, finibus ut justo eget, tristique lobortis lectus. Etiam luctus urna eget leo lobortis blandit.</p>
</div><!--col-lg-4 col-md-4 col-sm-4-->


</div><!--row-->
</div><!--container-->

</body>
</html>

我一直无法弄清楚为什么会这样。任何帮助,将不胜感激。

最佳答案

看起来你在这里使用的是 Bootstrap 2,看看这个 tutorial关于配置 Bootstrap 3 以在移动设备上工作。

关于html - Bootstrap 不为移动设备格式化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26394841/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com