我正在使用Bulma CSS 框架,但我根本无法让我的网站像他们的主页一样响应迅速。
该网站是实时的。我的 < html > 具有相同的字体大小,并且我的 dom 结构与 bulma 的主页相同。然而我的手机在手机上看起来很糟糕。
这是我的 HTML 页面的片段:
<html>
<body>
<section class="hero">
<div class="hero-body has-text-centered">
<div class="container">
<div>
<h1 class="title">Tiny Text!</h1>
</div>
</div>
</div>
</section>
</body>
</html>
<html class="route-index">
<body class="layout-default" style="zoom: 1;">
<section class="hero is-medium">
<div class="hero-body has-text-centered">
<div class="container">
<h1 class="title">Somehow big text?</h1>
</div>
</div>
</section>
</body>
</html>
布尔玛页面:
我的页面:
您可以通过 chrome 上的开发人员工具在两个站点的主页上将视口设置为移动设备来测试这一点。