CSS重置 reset.css
1. [文件] reset.css ~
/*
------------------------------------------
* site:ifnoif.net
* Style author:ifnoif
* updated date:2014.08.13
------------------------------------------
*/
body,
nav,
dl,
dt,
dd,
p,
h1,
h2,
h3,
h4,
ul,
ol,
li,
input,
button,
textarea,
footer {
margin: 0;
padding: 0
}
body {
font: 100%/1.5 Helvetica, Arial, sans-serif, \5FAE\8F6F\96C5\9ED1;
-webkit-text-size-adjust: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%
}
form {
display: inline
}
ul,
ol {
list-style: none
}
img {
vertical-align: middle;
border: 0;
-ms-interpolation-mode: bicubic;
}
button,
input,
select,
textarea {
font-size: 100%;
vertical-align: middle;
outline: none;
}
textarea {
resize: none
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
cursor: pointer;
-webkit-appearance: button;
-moz-appearance: button
}
input:focus:-moz-placeholder,
input:focus::-webkit-input-placeholder {
color: transparent
}
button::-moz-focus-inner,
input::-moz-focus-inner {
padding: 0;
border: 0
}
table {
border-collapse: collapse;
border-spacing: 0
}http://www.huiyi8.com/pingyu/
.fl {学生评语
float: left;
}
.fr {
float: right;
}
.hide {
display: none;
}
.show {
display: block;
}
.ellipsis {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden
}
.break {
word-break: break-all;
word-wrap: break-word
}
.clearfix {
*zoom: 1;
}
.clearfix:after {
content: "\200B";
display: block;
height: 0;
clear: both;
}
/* 垂直居中模块 */
.vimg {
display: block;
text-align: center;
*font-family: Arial;
*font-size: expression(this.clientHeight*.895+"px");
line-height: 100%;
overflow: hidden;
}
.vimg img {
_width: expression((this.width>this.height && this.width>=this.parentNode.offsetWidth) ? this.parentNode.offsetWidth+'px': true);
_height: expression((this.width<=this.height && this.height>=this.parentNode.offsetHeight) ? this.parentNode.offsetHeight+'px': true);
max-width: 100%;
max-height: 100%;
vertical-align: middle;
}
.vimg:after {
content: "\200B";
display: inline-block;
width: 0;
height: 100%;
vertical-align: middle;
}
header,
footer,
article,
section,
nav,
menu,
hgroup {
display: block;
clear: all;
}
/* 布局样式 */
body {
color: #333
}
a {
text-decoration: none;
color: #333
}
最新文章
- POJ3084 Panic Room(最小割)
- Vim常见快捷键汇总
- Meth | phpstorm invalid descendent file name
- 基于VMware的eCos环境编译redboot(脚本配置redboot)
- (转)ZOJ 3687 The Review Plan I(禁为排列)
- 将数组,表的某一列转换为string字符串的方法
- Oracle 存储过程之通用分页查询
- 使用runOnUiThread更新UI
- cookie解决 未登录加入购物车 第一次访问弹出新手引导页面
- css3模拟jq点击事件
- 无声的吐槽csdn
- ZZ_INEERNAL每个栏位的含义
- 【JavaScript动画基础】学习笔记(一)-- 旋转箭头
- 【Android Studio安装部署系列】三十三、windows系统中通过SourceTree使用git
- vue 导出xlsx表功能
- Scrapy案例01-爬取传智播客主页上的老师信息
- AndroidStudio意外崩溃,电脑重启,导致重启打开Androidstudio后所有的import都出错
- 使用mysqladmin extended-status查看MySQL的运行状态脚本
- delphi datetimepicker 修改时间无效问题
- Java RSA (SHA1withRSA)签名和验签