2024年04月22日 建站教程
Bulma是一个简单且易于定制的CSS UI框架,它提供了许多预定义的样式。开发者可以直接调用类名来使用,通过规范的组合,可以快速搭建一个web界面。Bulma官方提供了几十个基础组件,非常漂亮,也是用CSS实现,没有任何Javascript代码。下面web建站小编给大家简单介绍一下项目的搭建!
安装 Bulma
// npm 安装 npm install bulma // yarn 安装 yarn add bulma
或者
<!-- 在线引入 --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma-rtl.min.css">
demo项目示例
<!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@0.9.4/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>
本文链接:http://so.lmcjl.com/news/2820/