Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Bootstrap-让Web开发更迅速、简单
Search
cssrain
July 14, 2014
Technology
210
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
540
解读HTML
cssrain
0
210
解读HTML5
cssrain
2
230
基础CSS(1)
cssrain
0
220
基础CSS(2)
cssrain
0
160
高效的CSS
cssrain
0
220
高级CSS—继承
cssrain
0
190
PhoneGap分享和交流
cssrain
0
160
PhoneGap实践
cssrain
0
110
Other Decks in Technology
See All in Technology
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
920
re:Invent初参加で変わったこと、2回目にやってみたいこと(JAWS-UG彩の国埼玉 #12)
mhrtech
2
220
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
860
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.6k
大型犬好きによるPugの紹介
yamanoku
1
160
パッチ更新でterraform initが落ちた日
grimoh
1
140
遠藤な_めぐろLT #38 「社内のAI活用推進」@麻布台_20261009
endonanana
0
130
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
210
M5Stackで作る BLEマウス GPSログの世界
tomokusaba
0
420
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
580
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
200
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
140
Featured
See All Featured
New Earth Scene 8
popppiees
4
2.7k
Amusing Abliteration
ianozsvald
1
350
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
450
Art, The Web, and Tiny UX
lynnandtonic
304
22k
A Soul's Torment
seathinner
8
3.8k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Making Projects Easy
brettharned
120
6.8k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
550
Abbi's Birthday
coloredviolet
4
10k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
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