bootCDN引用的bootstrap前端框架套件和示例
这是bootCDN上引用的bootstrap前端框架套件,由多个框架组合而成,方便平时学习和测试使用。生产环境要仔细琢磨一下,不要用开发版,而要用生产版。bootCDN的地址是:https://www.bootcdn.cn/ ,是由bootstrap中文网提供的CDN前端加速服务。
<!DOCTYPE html>
<html>
<head>
<title>站点标题</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- jquery -->
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<!-- 含有popper的bootstrap -->
<link rel="stylesheet" href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
<!-- 动画 -->
<script src="https://cdn.bootcss.com/wow/1.1.2/wow.min.js"></script>
<link rel="stylesheet" href="https://cdn.bootcss.com/animate.css/3.7.2/animate.min.css">
<!-- 开发版vue,有错误信息 -->
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
<!-- 生产版vue,没有错误信息 -->
<!-- <script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script> -->
<!-- 图表 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/Chart.js/2.8.0-rc.1/Chart.min.css">
<script src="https://cdn.bootcss.com/Chart.js/2.8.0-rc.1/Chart.bundle.min.js"></script>
<!-- 矢量字体图标 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="container">
<!-- 动画示例 -->
<h1 class="animated infinite bounce">动画效果示例</h1>
<hr>
<!-- 图标示例 -->
<p>矢量图标示例:<i class="fa fa-user-o fa-3x"></i></p>
<hr>
<!-- vue示例 -->
<div id="app" class="alert alert-success">
vue示例:
<p>{{message}}</p>
</div>
<hr>
<!-- 图表示例 -->
chart图表示例:
<canvas id="myChart" width="400" height="400"></canvas>
<div>
<script>
//vue示例
var vm = new Vue({
el: app,
data:{
message: "hello Vue!"
}
}); //chars.js图表示例
var ctx = document.getElementById("myChart").getContext("2d");
var data = {
/// 表现在X轴上的数据,数组形式
labels : ["星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"],
/// 第一条线
datasets : [
{
label: '第一组数据示例',
/// 曲线的填充颜色
fillColor : "rgba(220,0,0,1)",
/// 填充块的边框线的颜色
strokeColor : "rgba(220,0,0,1)",
/// 表示数据的圆圈的颜色
pointColor : "rgba(220,220,220,1)",
/// 表示数据的圆圈的边的颜色
pointStrokeColor : "#f00",
data : [65.5,59.2,90,81,56,55,40],
backgroundColor: [
'rgba(153, 102, 255, 0.6)',
'rgba(153, 102, 255, 0.6)',
'rgba(153, 102, 255, 0.6)',
'rgba(153, 102, 255, 0.6)',
'rgba(153, 102, 255, 0.6)',
'rgba(153, 102, 255, 0.6)',
'rgba(153, 102, 255, 0.6)'
]
},
/// 第二条线
{
label: '第二组数据示例',
fillColor : "rgba(151,187,205,0.5)",
strokeColor : "rgba(151,187,205,1)",
pointColor : "rgba(151,187,205,1)",
pointStrokeColor : "#fff",
data : [28,48,40,18,86,27,100],
backgroundColor: [
'rgba(255, 99, 132, 0.6)',
'rgba(255, 99, 132, 0.6)',
'rgba(255, 99, 132, 0.6)',
'rgba(255, 99, 132, 0.6)',
'rgba(255, 99, 132, 0.6)',
'rgba(255, 99, 132, 0.6)',
'rgba(255, 99, 132, 0.6)'
]
}
]
}
/// 创建对象,生成图表,type为bar是柱状图,为line是折线图
var myLineChart = new Chart(ctx, {
type: 'bar',
data: data,
options: {
scales: {
yAxes: [{
tension: 0,
}]
}
}
}); </script>
</body>
</html>
其中动画类型由于种类不多,就列在下面吧:
bounce
flash
pulse
rubberBand
shake
headShake
swing
tada
wobble
jello
bounceIn
bounceInDown
bounceInLeft
bounceInRight
bounceInUp
bounceOut
bounceOutDown
bounceOutLeft
bounceOutRight
bounceOutUp
fadeIn
fadeInDown
fadeInDownBig
fadeInLeft
fadeInLeftBig
fadeInRight
fadeInRightBig
fadeInUp
fadeInUpBig
fadeOut
fadeOutDown
fadeOutDownBig
fadeOutLeft
fadeOutLeftBig
fadeOutRight
fadeOutRightBig
fadeOutUp
fadeOutUpBig
flipInX
flipInY
flipOutX
flipOutY
lightSpeedIn
lightSpeedOut
rotateIn
rotateInDownLeft
rotateInDownRight
rotateInUpLeft
rotateInUpRight
rotateOut
rotateOutDownLeft
rotateOutDownRight
rotateOutUpLeft
rotateOutUpRight
hinge
rollIn
rollOut
zoomIn
zoomInDown
zoomInLeft
zoomInRight
zoomInUp
zoomOut
zoomOutDown
zoomOutLeft
zoomOutRight
zoomOutUp
slideInDown
slideInLeft
slideInRight
slideInUp
slideOutDown
slideOutLeft
slideOutRight
slideOutUp
bootCDN引用的bootstrap前端框架套件和示例的更多相关文章
- 基于springboot+bootstrap+mysql+redis搭建一套完整的权限架构【六】【引入bootstrap前端框架】
https://blog.csdn.net/linzhefeng89/article/details/78752658 基于springboot+bootstrap+mysql+redis搭建一套完整 ...
- CI框架如何在主目录application目录之外使用uploadify上传插件和bootstrap前端框架:
19:29 2016/3/10CI框架如何在主目录application目录之外使用uploadify上传插件和bootstrap前端框架:项目主路径:F:\wamp\www\graduationPr ...
- BootStrap前端框架
BootStrap前端框架 Bootstrap 教程:http://www.runoob.com/bootstrap/bootstrap-tutorial.html BpptStrap操作手册:htt ...
- Bootstrap前端框架快速入门专题
1.Bootstrap简介 Bootstrap,出自自 Twitter,是目前最受欢迎的前端框架. Bootstrap 是基于 HTML.CSS.JAVASCRIPT 的前端框架,它简洁灵活,使得 W ...
- bootstrap 前端框架学习笔记
下面是一个基于 bootstrap 前端架构的最最基本的模板: (这里添加慕课网的学习笔记.) 1.认识一下 bootstrap 带来的优雅效果: 代码: <!DOCTYPE html> ...
- 吴裕雄 Bootstrap 前端框架开发——Bootstrap 排版:引用(Blockquote)
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> ...
- 吴裕雄 Bootstrap 前端框架开发——Bootstrap 排版:设定引用右对齐
<!DOCTYPE html> <html> <head> <title>菜鸟教程(runoob.com)</title> <meta ...
- bootstrap前端框架使用总结分享
1.bootstrap 排版 全局样式style.css: 1.移除body的margin声明 2.设置body的背景色为白色 3.为排版设置了基本的字体.字号和行高 4.设置全局链接颜色,且当链接处 ...
- Bootstrap 前端框架 遇到的问题 解决方案
bootstrap实现导航栏的响应式布局,当在小屏幕.手机屏幕浏览时自动折叠隐藏 直接放代码,更容易理解.下次可以套这个代码 <!DOCTYPE html> <html> &l ...
随机推荐
- 项目Beta冲刺(2/7)(追光的人)(2019.5.24)
所属课程 软件工程1916 作业要求 Beta冲刺博客汇总 团队名称 追光的人 作业目标 描述Beta冲刺每日的scrum和PM报告两部分 队员学号 队员博客 221600219 小墨 https:/ ...
- 前端性能----CDN
Content Distribute Network(内容分发网络)是构建在网络之上的内容分发网络,依靠部署在各地的边缘服务器,通过中心平台的负载均衡.内容分发.调度等功能模块,使用户就近获取所需内容 ...
- python tkinter txt窗口,开线程两个卡死
一个线程可以,两个卡死 #!/usr/bin/python # coding: utf-8 from Tkinter import * import threading class MyThread2 ...
- Worldview in Context
Worldview in Context Figures 1 and 2 provide a basis for a deeper understanding of worldview. The se ...
- bootstrap中data-*的一些归纳
最近发现date里面的东西跟常用,但是没有过一个系统化的归纳,今天下午正好有小会空,整合一下如下: 1. data-toggle data-toggle指以什么事件类型触发,常用的如下. data-t ...
- 4-网页,网站,微信公众号基础入门(配置网站--下载安装PHP)
https://www.cnblogs.com/yangfengwu/p/10979101.html 这一节咱看一下如何在原先的基础上实现网站 首先去下载 PHP https://windows.ph ...
- canal简单安装使用
canal简介:https://github.com/alibaba/canal 1.数据库配置 首先使用canal需要修改数据库配置 [mysqld] log-bin=mysql-bin # 开启 ...
- nginx 反向代理之 proxy_set_header
proxy_set_header用来设定被代理服务器接收到的header信息. 语法:proxy_set_header field value; field :为要更改的项目,也可以理解为变量的名字, ...
- Linux环境下安装Redis
记录一下Linux环境下安装Redis,按顺序执行即可,这里下载的是Redis5,大家可根据自己的需求,修改版本号就好了,亲测可行. 1.下载Redis安装包cd /usr/local/wget ht ...
- win10中通过Anaconda安装tensorflow时报错Traceback (most recent call last): File “E:\Anaconda3\lib\site-packages\pip_vendor\urllib3\response.py”, line 360, in _error_catcher yield
问题:通过默认镜像安装,下载过程中可能会报错,下载安装失败 Traceback (most recent call last): File “E:\Anaconda3\lib\site-package ...