Bootstrap快速入门指南(附代码)

Bootstrap 是最受欢迎的 HTML、CSS 和 JS 框架,用于开发响应式布局、移动设备优先的 WEB 项目。

Bootstrap官网:

Bootstrap中文网

Bootstrap英文网

如何使用Bootstrap:

首先进入官网,下载Bootstrap,然后将对应的css,js文件引入到项目中,就可以使用Bootstrap.

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
    <title>Bootstrap初始化</title>
    <link href="lib/bootstrap/css/bootstrap.css" rel="stylesheet">
    <!--引入自己定义的css样式-->
    <link rel="stylesheet" href="css/index.css">
    <style>
        body{
            padding: 40px;
        }
    </style>
</head>
<body>
<!--按钮-->

<!--正常情况下的按钮-->
<button>百度一下</button>
<!--bootstrap集成的按钮默认样式-->
<button class="btn">谷歌一下</button>
<!--bootstrap样式按钮-->
<button class="btn btn-danger">危险按钮</button>
<button class=&
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值