css清除默认样式和设置公共样式
- /*公共样式--开始*/
- html, body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, select {
- margin:;
- padding:;
- }
- *{box-sizing: border-box;}
- html, body {
- min-height: 100%;
- }
- body {
- font-family: "Microsoft YaHei";
- font-size:14px;
- color:#333;
- }
- h1, h2, h3, h4, h5, h6{font-weight:normal;}
- ul,ol {
- list-style: none;
- }
- img {
- border: none;
- vertical-align: middle;
- }
- a {
- text-decoration: none;
- color: #232323;
- }
- table {
- border-collapse: collapse;
- table-layout: fixed;
- }
- input, textarea {
- outline: none;
- border: none;
- }
- textarea {
- resize: none;
- overflow: auto;
- }
- .clearfix {
- zoom:;
- }
- .clearfix:after {
- content: ".";
- width:;
- height:;
- visibility: hidden;
- display: block;
- clear: both;
- overflow:hidden;
- }
- .fl {
- float: left
- }
- .fr {
- float: right
- }
- .tl {
- text-align: left;
- }
- .tc {
- text-align: center
- }
- .tr {
- text-align: right;
- }
- .ellipse {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .inline{
- display: inline-block;
- *display: inline;
- *zoom:;
- }
- /*公共样式--开始*/
- html, body, blockquote, button, dd, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, hr, a, img, label, input, legend, li, ol, p, pre, td, textarea, th, ul,table,tr {
- margin:;
- padding:;
- }
- * {
- box-sizing: border-box;
- }
- html, body {
- -webkit-text-size-adjust: 100%;
- -ms-text-size-adjust: 100%;
- text-size-adjust: 100%;
- }
- body {
- -webkit-font-smoothing: antialiased;
- }
- body, button, input, select, textarea {
- font: 12px/1.5 "Microsoft Yahei", Arial, Helvetica, sans-serif;
- color: #444443;
- }
- button, input, select, textarea {
- font-size: 100%;
- }
- input {
- padding: 0 5px;
- }
- textarea {
- padding: 5px;
- }
- h1, h2, h3, h4, h5, h6 {
- font-weight: normal;
- }
- ul, ol {
- list-style: none;
- }
- img {
- border: none;
- vertical-align: middle;
- max-height: 100%;
- }
- a {
- text-decoration: none;
- color: #444443;
- }
- em {
- font-style: normal;
- }
- table {
- border-collapse: collapse;
- table-layout: fixed;
- }
- input, textarea, button {
- outline: none;
- }
- textarea {
- resize: none;
- overflow: auto;
- }
- .clearfix,.col-container{
- zoom:;
- }
- .clearfix:after,.col-container:after {
- content: ".";
- width:;
- height:;
- visibility: hidden;
- display: block;
- clear: both;
- overflow: hidden;
- }
- .fl {
- float: left
- }
- .fr {
- float: right!important;
- }
- .tl {
- text-align: left;
- }
- .tc {
- text-align: center
- }
- .tr {
- text-align: right;
- }
- .ellipse {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .inline {
- display: inline-block;
- *display: inline;
- *zoom:;
- }
- .borderRadius {
- border-radius: 5px;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- -ms-border-radius: 5px;
- -o-border-radius: 5px;
- }
- /*公共样式--结束*/
- /*bootstrap版适配*/
- .col-container {
- margin-right: auto;
- margin-left: auto
- }
- @media (min-width: 768px) {
- .col-container {
- width: 750px
- }
- }
- @media (min-width: 992px) {
- .col-container {
- width: 970px
- }
- }
- @media (min-width: 1200px) {
- .col-container {
- width: 1170px
- }
- }
- .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
- position: relative;
- min-height: 1px;
- }
- .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
- float: left
- }
- .col-xs-12 {
- width: 100%
- }
- .col-xs-11 {
- width: 91.66666667%
- }
- .col-xs-10 {
- width: 83.33333333%
- }
- .col-xs-9 {
- width: 75%
- }
- .col-xs-8 {
- width: 66.66666667%
- }
- .col-xs-7 {
- width: 58.33333333%
- }
- .col-xs-6 {
- width: 50%
- }
- .col-xs-5 {
- width: 41.66666667%
- }
- .col-xs-4 {
- width: 33.33333333%
- }
- .col-xs-3 {
- width: 25%
- }
- .col-xs-2 {
- width: 16.66666667%
- }
- .col-xs-1 {
- width: 8.33333333%
- }
- @media (min-width: 992px) {
- .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
- float: left
- }
- .col-md-12 {
- width: 100%
- }
- .col-md-11 {
- width: 91.66666667%
- }
- .col-md-10 {
- width: 83.33333333%
- }
- .col-md-9 {
- width: 75%
- }
- .col-md-8 {
- width: 66.66666667%
- }
- .col-md-7 {
- width: 58.33333333%
- }
- .col-md-6 {
- width: 50%
- }
- .col-md-5 {
- width: 41.66666667%
- }
- .col-md-4 {
- width: 33.33333333%
- }
- .col-md-3 {
- width: 25%
- }
- .col-md-2 {
- width: 16.66666667%
- }
- .col-md-1 {
- width: 8.33333333%
- }
- }
- @media (min-width: 768px) {
- .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
- float: left
- }
- .col-sm-12 {
- width: 100%
- }
- .col-sm-11 {
- width: 91.66666667%
- }
- .col-sm-10 {
- width: 83.33333333%
- }
- .col-sm-9 {
- width: 75%
- }
- .col-sm-8 {
- width: 66.66666667%
- }
- .col-sm-7 {
- width: 58.33333333%
- }
- .col-sm-6 {
- width: 50%
- }
- .col-sm-5 {
- width: 41.66666667%
- }
- .col-sm-4 {
- width: 33.33333333%
- }
- .col-sm-3 {
- width: 25%
- }
- .col-sm-2 {
- width: 16.66666667%
- }
- .col-sm-1 {
- width: 8.33333333%
- }
- }
- @media (min-width: 1200px) {
- .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
- float: left
- }
- .col-lg-12 {
- width: 100%
- }
- .col-lg-11 {
- width: 91.66666667%
- }
- .col-lg-10 {
- width: 83.33333333%
- }
- .col-lg-9 {
- width: 75%
- }
- .col-lg-8 {
- width: 66.66666667%
- }
- .col-lg-7 {
- width: 58.33333333%
- }
- .col-lg-6 {
- width: 50%
- }
- .col-lg-5 {
- width: 41.66666667%
- }
- .col-lg-4 {
- width: 33.33333333%
- }
- .col-lg-3 {
- width: 25%
- }
- .col-lg-2 {
- width: 16.66666667%
- }
- .col-lg-1 {
- width: 8.33333333%
- }
- }
- /*旋转效果*/
- @keyframes rotate {
- 0%{
- transform: rotate(0deg);
- }
- 100%{
- transform: rotate(360deg);
- }
- }
- @-webkit-keyframes rotate {
- 0%{
- -webkit-transform: rotate(0deg);
- }
- 100%{
- -webkit-transform: rotate(360deg);
- }
- }
- @-moz-keyframes rotate {
- 0%{
- -moz-transform: rotate(0deg);
- }
- 100%{
- -moz-transform: rotate(360deg);
- }
- }
- @-ms-keyframes rotate {
- 0%{
- -ms-transform: rotate(0deg);
- }
- 100%{
- -ms-transform: rotate(360deg);
- }
- }
- @-o-keyframes rotate {
- 0%{
- -o-transform: rotate(0deg);
- }
- 100%{
- -o-transform: rotate(360deg);
- }
- }
- .fade{
- transform: translateY(2em);
- -webkit-transform: translateY(2em);
- opacity:;
- filter:Alpha(opacity=0);
- }
- .fadesin{
- transform: translateY(0);
- -webkit-transform: translateY(0);
- opacity:;
- transition: all 1s 0.2s;
- filter:Alpha(opacity=100)
- }
css清除默认样式和设置公共样式的更多相关文章
- css清除默认样式
CSS 清除默认样式 通常有以下几句就够了: *{margin:0;padding:0} li{list-style:none} img{vertical-align:top;border:non ...
- css清除select的下拉箭头样式
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> ...
- CSS 清除默认样式
通常有以下几句就够了: *{margin:0;padding:0} li{list-style:none} img{vertical-align:top;border:none} 如果你想写全也可以: ...
- css清除默认样式,stylus学习
reset.css html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, ...
- CSS清除默认样式代码
html, body, div, ul, li, h1, h2, h3, h4, h5, h6, p, dl, dt, dd, ol, form, input, textarea, th, td, s ...
- css中根据不同分辨率设置不同样式
@media screen and (max-width: ) { .tab__content{width: %} }
- vue修改当前页样式不影响公共样式的方法
在项目开发中需要对一些标签进行样式修改但是每次修改之后其他页面的样式也会跟着改变, 在网上找了很多方法都不好使后来大神告诉我一种方法很好用分享给大家. 1:首先在template标签下的第一个div中 ...
- CSS清除默认边距
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquo ...
- 深入理解脚本化CSS系列第四篇——脚本化样式表
× 目录 [1]CSSStyleSheet [2]CSSRule 前面的话 关于脚本化CSS,查询样式时,查询的是计算样式:设置单个样式时,设置的是行间样式:设置多个样式时,设置的是CSS类名.脚本化 ...
随机推荐
- MSM8909+Android5.1.1之系统烧录
1. 安装高通USB驱动 图1 安装成功后,同时按下设备的音量+和音量-按键,且用USB连接到设备上,在设"设备管理器--->端口"下面看到USB虚拟的端口,如下: ...
- 我的android学习经历28
一道题目关于Layout_weight: 当前屏幕的大小为430,有左右两个控件,未分配权重之前都是300,左控件的权重是3,右控件的权重是2,请计算左右两个控件的宽度大小是多少? 解: 当前屏幕剩余 ...
- UVA 10564 十 Paths through the Hourglass
Paths through the Hourglass Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & % ...
- Python操作文件、文件夹、字符串
Python 字符串操作 去空格及特殊符号 s.strip().lstrip().rstrip(',') 复制字符串 #strcpy(sStr1,sStr2) sStr1 = 'strcpy' sSt ...
- Python 正则表达式指南 zz
zz http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html 1. 正则表达式基础 1.1. 简单介绍 正则表达式并不是Python的一 ...
- linux 查找替换
esc: 命令模式与插入模式的切换 一.vi查找: 当你用vi打开一个文件后,因为文件太长,如何才能找到你所要查找的关键字呢?在vi里可没有菜单-〉查找, 不过没关系,你在命令模式下敲斜杆( ...
- 【转】利用Pspice分析放大器环路的稳定性
文章来源: http://www.21ic.com/app/test/201108/90808.htm 虽然在较低频率下可以较轻松地检查一个简单放大器的稳定性,但评估一个较为复杂的电路是否稳定,难度可 ...
- 关于oracle sql developer乱码的问题
写了一个sql查询,我擦居然乱码了 然后双击下这个框,居然又是中文: 有谁能够告诉我这是什么鬼
- [SAP ABAP开发技术总结]ALV
声明:原创作品,转载时请注明文章来自SAP师太技术博客( 博/客/园www.cnblogs.com):www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将 ...
- JQuery 选中Radio
<tr> <td> <input type="radio" name="rdb" value="启用" che ...