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
css.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
uictechparty
July 31, 2012
220
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
css.pdf
uictechparty
July 31, 2012
Transcript
17 slides
CSS框架简介 1st TechParty@UIC xingzhi
为什么要用css框架
省事!
1. 标准、规范、跨浏览器 2. 快速开发 3. 统一样式
CSS框架类型 元素重置、字体风格、网格布局、表单样式 等等
为什么要元素重置 (reset.css)
1. html标签会有默认样式 2. 不同浏览器默认样式不一样
reset.css:覆盖浏览器的默认样式
/*reset.css from YUI*/ html{font: 12px/24px "微软雅黑","宋体","arial","Verdana";color: #000;} body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form, fieldset,legend,input,textarea,p,blockquote,th,td{margin:0; padding:0}table{border-collapse:collapse;border-spacing:0}
fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th, var{font-style:normal;font-weight:normal}ol,ul{list-style:none} caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font- weight:normal}q:before,q:after{content:''}abbr,acronym{border:0; font-variant:normal}sup{vertical-align:text-top}sub{vertical- align:text-bottom}input,textarea,select{font-family:inherit;font- size:inherit;font-weight:inherit}input,textarea,select{*font- size:100%}legend{color:#000}a{text-decoration: none;}
网格布局
常见的网格系统: Blueprint: A CSS Grid Framework、 960 CSS Grid System、
Tripoli Framework、 YAML – Yet Another Multicolumn Layout、 YUI Grid CSS 等
960 grid system
“ 960 Grid System的特性是将960像素的网 页分为12列的布局和16列布局。12列布局将 总宽分成12份,每份的宽度是60px,而16列 的布局分成16份,每份的宽度是40px,每部 分左右边距都是10px,从而每列产生20px的 空隙。”
960.gs 首页示例
页面宽度:960px 容器:container_12、container_16 网格:grid_N 去除外边距: alpha、omega 定位:push_N 、pull_N 占位:prefix_N 、suffix_N 清除浮动:clear
讲代码。。。
36 个 CSS 框架推荐http://www.oschina.net/news/22591/36-css- frameworks-for-designers 精选国外15个CSS框架 http://www.cnblogs.com/ywqu/archive/2009/08/24/1552635.html 栅格系统网站设计流程 http://www.ziluobo.com/960gs-use.html
More Decks by uictechparty
See All by uictechparty
产品经理是做什么的呢?
uictechparty
1
280
找人
uictechparty
3
490
香港研究生申请经验分享
uictechparty
0
430
Introduction to Design Patterns
uictechparty
2
210
编写高质量Java代码的7个建议
uictechparty
2
220
视觉障碍出行辅助仪 -The Third Eye
uictechparty
1
200
jQuery 快速入门
uictechparty
1
190
Introduction to NodeJS
uictechparty
1
250
Introduction to Hadoop
uictechparty
3
250
Featured
See All Featured
Navigating Weather and Climate Data
rabernat
0
600
Exploring anti-patterns in Rails
aemeredith
4
580
Tell your own story through comics
letsgokoyo
1
1.1k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
2
550
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
430
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.7k
Accessibility Awareness
sabderemane
1
310
Building an army of robots
kneath
307
47k
Test your architecture with Archunit
thirion
2
2.5k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k