响应式网站通用css
/* core.css v1.1 | MIT License | corecss.io */
html {
font-family: sans-serif;
font-size: 100%;
line-height:;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
body, header, footer, main, section, div,
h1, h2, h3, h4, h5, h6, p, span, a,
blockquote, q, pre, code, ol, ul, li,
form, label, input, textarea, button,
table, tr, th, td, dl, dt, dd, hr {
margin:;
padding:;
border:;
font: inherit;
font-size: 100%;
line-height: inherit;
vertical-align: baseline;
background: transparent;
}
article, aside, details, figcaption, figure,
footer, header, main, menu, nav, section, summary {
display: block;
}
ol, ul {
list-style: none;
}
hr {
border-bottom: 1px solid #000;
}
img {
max-width: 100%;
height: auto;
vertical-align: middle;
border-style: none;
}
a, a:hover {
color: #000;
text-decoration: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
[type='color'],
[type='date'],
[type='datetime-local'],
[type='email'],
[type='month'],
[type='number'],
[type='password'],
[type='search'],
[type='tel'],
[type='text'],
[type='time'],
[type='url'],
[type='week'],
textarea {
display: block;
width: 100%;
max-width: 100%;
border: 1px solid #000;
border-radius:;
-webkit-appearance: none;
-moz-appearance: none;
}
::-webkit-input-placeholder {color: #777;}
:-moz-placeholder {color: #777;}
::-moz-placeholder {color: #777; opacity:;}
:-ms-input-placeholder {color: #777;}
[type='reset'],
[type='submit'],
[type='button'],
button {
border: 1px solid #000;
border-radius:;
-webkit-appearance: none;
-moz-appearance: none;
cursor: pointer;
}
:focus {
outline: none;
}
table {
width: 100%;
}
table, tr, th, td {
border: 1px solid #000;
border-collapse: collapse;
border-spacing:;
}
.row {margin: 0 auto;}
.row:before, .row:after {content: ''; display: table;}
.row:after {clear: both;}
.xs {max-width: 32rem;}
.sm {max-width: 48rem;}
.md {max-width: 64rem;}
.lg {max-width: 80rem;}
.xl {max-width: 96rem;}
.col {float: left;}
.xs-0 {display: none;}
.xs-1, .xs-2, .xs-3, .xs-4, .xs-5, .xs-6, .xs-7, .xs-8, .xs-9, .xs-10, .xs-11, .xs-12 {display: inline-block;}
.xs-1 {width: 8.3333%;}
.xs-2 {width: 16.6667%;}
.xs-3 {width: 25%;}
.xs-4 {width: 33.3333%;}
.xs-5 {width: 41.6667%;}
.xs-6 {width: 50%;}
.xs-7 {width: 58.3333%;}
.xs-8 {width: 66.6667%;}
.xs-9 {width: 75%;}
.xs-10 {width: 83.3333%;}
.xs-11 {width: 91.6667%;}
.xs-12 {width: 100%;}
@media screen and (min-width: 32em) {
.sm-0 {display: none;}
.sm-1, .sm-2, .sm-3, .sm-4, .sm-5, .sm-6, .sm-7, .sm-8, .sm-9, .sm-10, .sm-11, .sm-12 {display: inline-block;}
.sm-1 {width: 8.3333%;}
.sm-2 {width: 16.6667%;}
.sm-3 {width: 25%;}
.sm-4 {width: 33.3333%;}
.sm-5 {width: 41.6667%;}
.sm-6 {width: 50%;}
.sm-7 {width: 58.3333%;}
.sm-8 {width: 66.6667%;}
.sm-9 {width: 75%;}
.sm-10 {width: 83.3333%;}
.sm-11 {width: 91.6667%;}
.sm-12 {width: 100%;}
}
@media screen and (min-width: 48em) {
.md-0 {display: none;}
.md-1, .md-2, .md-3, .md-4, .md-5, .md-6, .md-7, .md-8, .md-9, .md-10, .md-11, .md-12 {display: inline-block;}
.md-1 {width: 8.3333%;}
.md-2 {width: 16.6667%;}
.md-3 {width: 25%;}
.md-4 {width: 33.3333%;}
.md-5 {width: 41.6667%;}
.md-6 {width: 50%;}
.md-7 {width: 58.3333%;}
.md-8 {width: 66.6667%;}
.md-9 {width: 75%;}
.md-10 {width: 83.3333%;}
.md-11 {width: 91.6667%;}
.md-12 {width: 100%;}
}
@media screen and (min-width: 64em) {
.lg-0 {display: none;}
.lg-1, .lg-2, .lg-3, .lg-4, .lg-5, .lg-6, .lg-7, .lg-8, .lg-9, .lg-10, .lg-11, .lg-12 {display: inline-block;}
.lg-1 {width: 8.3333%;}
.lg-2 {width: 16.6667%;}
.lg-3 {width: 25%;}
.lg-4 {width: 33.3333%;}
.lg-5 {width: 41.6667%;}
.lg-6 {width: 50%;}
.lg-7 {width: 58.3333%;}
.lg-8 {width: 66.6667%;}
.lg-9 {width: 75%;}
.lg-10 {width: 83.3333%;}
.lg-11 {width: 91.6667%;}
.lg-12 {width: 100%;}
}
@media screen and (min-width: 80em) {
.xl-0 {display: none;}
.xl-1, .xl-2, .xl-3, .xl-4, .xl-5, .xl-6, .xl-7, .xl-8, .xl-9, .xl-10, .xl-11, .xl-12 {display: inline-block;}
.xl-1 {width: 8.3333%;}
.xl-2 {width: 16.6667%;}
.xl-3 {width: 25%;}
.xl-4 {width: 33.3333%;}
.xl-5 {width: 41.6667%;}
.xl-6 {width: 50%;}
.xl-7 {width: 58.3333%;}
.xl-8 {width: 66.6667%;}
.xl-9 {width: 75%;}
.xl-10 {width: 83.3333%;}
.xl-11 {width: 91.6667%;}
.xl-12 {width: 100%;}
}
响应式网站通用css的更多相关文章
- 使用Quasar设计Material和IOS风格的响应式网站
使用Quasar设计Material和IOS风格的响应式网站 栏目: CSS · 发布时间: 8个月前 来源: segmentfault.com 本文转载自:https://segmentfaul ...
- 使用 CSS 媒体查询创建响应式网站
简介 现今每天都有更多的手机和平板电脑问市.消费者能够拥有可想象到的各种规格和形状的设备,但是网站开发人员却面临一个挑战:如何使他们的网站在传统浏览器.手机和平板电脑浏览器上有很好的效果,如何在各种大 ...
- css媒体查询:响应式网站
css媒体查询:响应式网站 媒体查询 包含了一个媒体类型和至少一个使用如宽度.高度和颜色等媒体属性来限制样式表范围的表达式.CSS3加入的媒体查询使得无需修改内容便可以使样式应用于某些特定的设备范围. ...
- CSS 媒体查询创建响应式网站
使用 CSS 媒体查询创建响应式网站 适用于所有屏幕大小的设计 固定宽度的静态网站很快被灵活的响应式设计所取代,该设计可以根据屏幕大小进行上扩和下扩.利用响应式设计,无论您采用什么设备或屏幕来访问网 ...
- 响应式网站css reset
响应式网站 css reset /* core.css v1.1 | MIT License | corecss.io */ html { font-family: sans-serif; font- ...
- Skeljs – 用于构建响应式网站的前端开发框架
skelJS 是一个轻量级的前端框架,用于构建响应式站点和应用程序.让设计人员和开发人员可能够使用四个强大的组件:CSS 网格系统,响应式处理程序,CSS 的快捷方式和插件系统. 您可能感兴趣的相关文 ...
- IE浏览器支持响应式网站设计
目前响应式网站设计比较流行, 下面是摘自百度百科有关响应式设计的定义. 响应式网站设计是一种网络页面设计布局,其理念是:集中创建页面的图片排版大小,可以智能地根据用户行为以及使用的设备环境进行相对应的 ...
- 使用Bootstrap 3开发响应式网站实践07,页脚
页脚部分比较简单,把一个12列的Grid切分. <footer> <div class="container"> <div class="r ...
- 使用Bootstrap 3开发响应式网站实践06,使用ListGroup、Thumbnails展示内容
□ ListGroup展示内容 当希望把同类型的内容以列表.区块展示的时候,ListGroup是不错的选择. <div class="col-sm-6"> <h3 ...
随机推荐
- 理解是最好的记忆方法 之 CSS中a链接的④个伪类为何有顺序
理解是最好的记忆方法 之 CSS中a链接的④个伪类为何有顺序 在CSS中,a标签有4种伪类,分别为: a:link, a:visited, a:hover, a:active 对其稍有了解的前端er都 ...
- 【面经】用递归方法对二叉树进行层次遍历 && 二叉树深度
void PrintNodeAtLevel(BiTree T,int level) { // 空树或层级不合理 ) return; == level) { cout << T->da ...
- Linux profile File
umask 022alias vim="/pd/vim/7.1/bin/vim"if [ -e /usr/bin/vim ]; then alias vim="/usr/ ...
- 优先队列 UVA 11997 K Smallest Sums
题目传送门 题意:训练指南P189 分析:完全参考书上的思路,k^k的表弄成有序表: 表1:A1 + B1 <= A1 + B2 <= .... A1 + Bk 表2:A2 + B1 &l ...
- WPF拖放功能实现zz
写在前面:本文为即兴而作,因此难免有疏漏和词不达意的地方.在这里,非常期望您提供评论,分享您的想法和建议. 这是一篇介绍如何在WPF中实现拖放功能的短文. 首先要读者清楚的一件事情是:拖放主要分为拖放 ...
- HDU 2846 (AC自动机+多文本匹配)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2846 题目大意:有多个文本,多个模式串.问每个模式串中,有多少个文本?(匹配可重复) 解题思路: 传统 ...
- Leetcode Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in ...
- Codeforces Round #253 (Div. 2) A. Anton and Letters
题目很简单,只需要注意带空格的输入用getline即可 #include <iostream> #include <vector> #include <algorithm ...
- ACM Haffman编码
Haffman编码 时间限制:1000 ms | 内存限制:65535 KB 难度:3 描述 哈弗曼编码大家一定很熟悉吧(不熟悉也没关系,自己查去...).现在给你一串字符以及它们所对应的权值 ...
- AJAX 跨域请求 - JSONP获取JSON数据
Asynchronous JavaScript and XML (Ajax ) 是驱动新一代 Web 站点(流行术语为 Web 2.0 站点)的关键技术.Ajax 允许在不干扰 Web 应用程序的显示 ...