1
使用HTML5的声明
<!doctype html>
入门
仅需引入一个CSS文件即可快速启用
Bulma是一个CSS框架,通过类名对HTML页面进行美化。包括以下两种引入方式:
.css
直接使用;.scss
文件进行个性化的使用。为了正确的使用Bulma,需要配置你的页面为响应式。
1
使用HTML5的声明
<!doctype html>
2
添加响应式的视口声明
<meta name="viewport" content="width=device-width, initial-scale=1">
请使用以下标准模版来启动Bulma:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello Bulma!</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css">
</head>
<body>
<section class="section">
<div class="container">
<h1 class="title">
Hello World
</h1>
<p class="subtitle">
My first website with <strong>Bulma</strong>!
</p>
</div>
</section>
</body>
</html>