Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Bootstrap-让Web开发更迅速、简单
Search
cssrain
July 14, 2014
Technology
200
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Bootstrap-让Web开发更迅速、简单
cssrain
July 14, 2014
More Decks by cssrain
See All by cssrain
UED工作流程分享和交流
cssrain
1
500
解读HTML
cssrain
0
170
解读HTML5
cssrain
2
190
基础CSS(1)
cssrain
0
180
基础CSS(2)
cssrain
0
130
高效的CSS
cssrain
0
180
高级CSS—继承
cssrain
0
150
PhoneGap分享和交流
cssrain
0
120
PhoneGap实践
cssrain
0
93
Other Decks in Technology
See All in Technology
社内の7割が使うデータ基盤を、 データチーム2人で回すためにやったこと
koh_yoshi
4
1.4k
システム思考で問題に対処する
yussak
0
300
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.2k
Model Studio CLI × Token Plan
maigo999
0
180
AWS ネットワーク構築でハマった(ハマりかけた) 5選とそこから得た教訓
nagisa53
4
230
My broken English still works: speaking at global OSS events
naruoga
0
100
LanceDB入門
mocobeta
8
540
Bits AI を制するものは Datadog を制す / The player that controls Bits AI, controls Datadog
kaminashi
0
110
Invisible to AI? Making TYPO3 Sites Quotable by AI Search Systems
wolfgangwagner
0
210
攻撃と防御で学ぶAI時代のプロダクトセキュリティ演習
recruitengineers
PRO
9
2.9k
変化の早いClaude Codeを 書籍に落とし込む
oikon48
7
1.4k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
4.9k
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
The agentic SEO stack - context over prompts
schlessera
0
860
Code Review Best Practice
trishagee
74
20k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
490
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
890
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Scaling GitHub
holman
464
140k
Utilizing Notion as your number one productivity tool
mfonobong
4
540
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
3
430
Transcript
Bootstrap3 简洁、直观、强悍、移动设备优先的前端开发框架, 让web开发更迅速、简单。 UED分享 · 交流 http://cssrain.github.io
目录 1 介绍 2 入门 3 进阶 4 总结
介绍 - 发展史 2013 2012 2011 2010 兴趣小组成立 Twitter将其开源 Bootstrap3
2.0版
介绍 - Bootstrap特点 响应式 CSS3 响 应 式 前 端
开 发 解 决 方 案 html5+CSS 3 样式源码 基于Less 前端框架
目录 1 介绍 2 入门 3 进阶 4 总结
入门 - 响应式前端开发 一个网站能够在不同情况下展示最佳效果 不同终端 移动端的屏幕定向 不同分辨率(屏幕宽度)
入门 - 响应式前端开发 媒体查询
入门 - 下载与引入 版本 预编译版 编译版本 引入
Js文件按需加载 <link rel="stylesheet" type="text/css" href="css/bootstrap.css"> <script src="js/jquery.js" type="text/javascript"></script> <script src="js/bootstrap.js" type="text/javascript"></script>
入门 - 栅格系统 响应式的实现关键 @media:媒体查询 .container:居中对齐、不可嵌套 .row:表示一行,包含在.container中 12列 .col-xs-*:
超小屏幕设备 手机 (<768px) .col-sm-*:小屏幕设备 平板 (≥768px) .col-md-*:中等屏幕设备 PC桌面 (≥992px) .col-lg-*:大屏幕设备 PC桌面 (≥1200px) .visible-xs、.hidden-xs:响应式工具类
入门 - 栅格系统 <div class="container"> <div class="row"> <div class="col-xs-12 col-md-8">
.col-xs-12 .col-md-8 </div> <div class="col-xs-6 col-md-4"> .col-xs-6 .col-md-4 </div> </div> <div class="row"> ... </div> <div> 代码
入门 - 栅格系统 分辨率≥992px 分辨率<768px
入门 - 栅格系统 方便简单的完成响应式页面开发 代码结构简单 无需考虑浮动 无需考虑宽度 不同的分辨率对应不同的col-*-*类
入门 - 基本组件 Glyphicons图标 按钮组 输入框组
导航 列表组 进度条 ...
入门 - 进度条 展示数据对比 利用setInterval函 数修改宽度动态 显示进度。 <div
class="progress"> <div class="progress-bar" style="width: 60%;"> </div> </div> var _width = 60; var interval = setInterval(function () { _width += Math.floor(Math.random()*10+1); if(_width>=100){ _width = 100; clearInterval(interval); } $('#progressBar').css({"width":_width+"%"}); }, 1000);
入门 -工具提示 tooltip.js 方法1: data属性 <button type="button" class="btn btn-default"
data-toggle="tooltip" data-placement="left" title="左侧提示"> 左侧Tooltip </button> <a id="tooltipDemo">js调用</a> var options = { title: "js调用", placement: "right" } $("#tooltipDemo").tooltip(options); 方法2: js调用
目录 1 介绍 2 入门 3 进阶 4 总结
进阶 - Less Bootstrap使用less来编写 主题定制 编 译 后
进阶 - box-sizing *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing:
border-box; box-sizing: border-box; } 标准盒模型 content-box 怪异模式盒模型 border-box Width、height包括padding与border bootstrap为什么使用该模型
进阶 - 定制
进阶 – 主题下载
进阶 - 第三方jQ插件 Datetime Lightbox typeahead.js
…
进阶 - bootstrap设计工具 layoutit
目录 1 介绍 2 入门 3 进阶 4 总结
总结 轻量(可定制) 它使用了足够简单的解决问题的办法,于是大家都可以或是改写 他,或是利用他,或是补充他。 定制自己需要的 开发简单、节省时间 栅格布局、组件化 主题、页面风格一致
兼容性强 响应式
UED分享 · 交流 http://cssrain.github.io