当前位置: 首页 > news >正文

【Django】开源前端库bootstrap,常用

文章目录

    • 下载bootstrap源文件到本地项目
    • 引入bootstrap文件

在这里插入图片描述

  • 官网:https://www.bootcss.com/
  • V4版本入口:https://v4.bootcss.com/
  • V5版本入口:https://v5.bootcss.com/

这里使用成熟的V4版本,中文文档地址:https://v4.bootcss.com/docs/getting-started/introduction/

下载bootstrap源文件到本地项目

在这里插入图片描述
https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css
https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js
https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js
以上链接打开后,文件另存为即可
在这里插入图片描述

引入bootstrap文件

<!doctype html>
<html lang="zh-CN"><head><!-- 必须的 meta 标签 --><meta charset="utf-8"><meta name="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"><!-- Bootstrap 的 CSS 文件 --><link rel="stylesheet" href="./static/antapp/bootstrap/bootstrap.min.css"><title>Hello, world!</title></head><body><h1>Hello, world!</h1><table class="table"><thead class="thead-dark"><tr><th scope="col">#</th><th scope="col">First</th><th scope="col">Last</th><th scope="col">Handle</th></tr></thead><tbody><tr><th scope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><th scope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><th scope="row">3</th><td>Larry</td><td>the Bird</td><td>@twitter</td></tr></tbody></table><!-- JavaScript 文件是可选的。从以下两种建议中选择一个即可! --><!-- 选项 1:jQuery 和 Bootstrap 集成包(集成了 Popper) --><script src="./static/antapp/bootstrap/jquery.min.js"></script><script src="./static/antapp/bootstrap/bootstrap.bundle.min.js"></script></body>
</html>

在这里插入图片描述
中文文档地址:https://v4.bootcss.com/docs/getting-started/introduction/

http://www.lryc.cn/news/408488.html

相关文章:

  • 2024后端开发面试题总结
  • opencascade AIS_Manipulator源码学习
  • Hadoop、Hive、HBase、数据集成、Scala阶段测试
  • go语言day19 使用git上传包文件到github Gin框架入门
  • Ubuntu升级软件或系统
  • 【Redis】Centos7 安装 redis(详细教程)
  • Hakuin:一款自动化SQL盲注(BSQLI)安全检测工具
  • 在 Postman 中设置全局 token
  • Linux C编程:打造一个插件系统
  • 基于毫米波生物感知雷达+STM32设计的独居老人居家监护系统(微信小程序)(192)
  • C++——类和对象(下)
  • Android中集成前端页面探索(Capacitor 或 Cordova 插件)待完善......
  • 玩转CSS:用ul li +JS 模拟select,避坑浏览器不兼容。
  • 介绍下PolarDB
  • 基于微信小程序+SpringBoot+Vue的儿童预防接种预约系统(带1w+文档)
  • go语言day15 goroutine
  • Mindspore框架循环神经网络RNN模型实现情感分类|(六)模型加载和推理(情感分类模型资源下载)
  • System类
  • 【前端 02】新浪新闻项目-初步使用CSS来排版
  • HarmonyOS和OpenHarmony区别联系
  • llama模型,nano
  • ElasticSearch的应用场景和优势
  • git 、shell脚本
  • 阿里云服务器 篇六:GitHub镜像网站
  • 强化学习学习(三)收敛性证明与DDPG
  • 培养前端工程化思维,不要让一行代码毁了整个程序
  • 电子文件怎么盖章?
  • IDEA在编译的时候报Error: java: 找不到符号符号: 变量 log lombok失效问题
  • 【Python】如何修改元组的值?
  • 【安卓】Android Studio简易计算器(实现加减乘除,整数小数运算,正数负数运算)