去除浏览器对html的附加样式,避免不同浏览器之间的样式差异,给前端开发提供统一的样式基础。附加样式:

  .clearfix - 清除浮动

  .wordsBreak - 允许文本在任意位置的换行

  .ellipsis - 超长文本截断,以省略号显示

@charset "utf-8";
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,form,input,button,textarea,p,table,th,td,section,img{
margin:0;
padding:0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, menu, nav, section {
display: block;
margin:0;
padding:0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
ol,ul,li,dl,dt,dd {
list-style:none;
}
button, input, select, textarea {
font-family: Helvetica,Tahoma,Arial,"Helvetica Neue","Hiragino Sans GB","Microsoft YaHei";
-webkit-appearance:none;
-moz-appearance:none;
appearance:none;
outline: none;
border-radius: 0;
border: 1px solid #ccc;
}
i,em{
font-style:normal;
}
img {
border:none;
}
table{
border-collapse:collapse;
border-spacing:0;
}
html,body {
width: 100%;
height: 100%;
background: #fff;
font-size: 14px;
line-height: 1.4;
font-family: Helvetica,Tahoma,Arial,"Helvetica Neue","Hiragino Sans GB","Microsoft YaHei";
color: #313135;
-webkit-text-size-adjust:100%;
-ms-text-size-adjust: 100%;
text-rendering: optimizelegibility;
}
a,a:hover,a:link,a:visited,a:active {
color: #313135;
text-decoration:none;
}
p,.wordsBreak{
word-wrap:break-word;
word-break:break-all;
}
.clearfix:after {
content: ".";
display: block;
height:0;
clear:both;
visibility: hidden;
}
.clearfix {
*zoom:1;
}
.ellipsis{
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

  

最新文章

  1. Java并发编程:volatile关键字解析
  2. CSS的margin塌陷(collapse)
  3. linux 程序管理与SElinux
  4. MFC resizer封装
  5. Codeforces 445 A DZY Loves Chessboard【DFS】
  6. [原博客] BZOJ 2242 [SDOI2011] 计算器
  7. Quartz1.8.5例子(三)
  8. httpclient 超时设置
  9. WPF笔记(1.10 绘图)——Hello,WPF!
  10. 【CSS学习】字符实体
  11. 好用的JS压缩工具—JSCompress
  12. Session详解及集群共享
  13. 【 全干货 】5 分钟带你看懂 Docker !
  14. Android新建工程步骤(AndroidStudio)
  15. linux 编译静态库及动态库例子--from周立功文档
  16. asp.net 使用rabbitmq事例
  17. Conv1D、Conv2D、Conv3D
  18. python 解方程 和 python 距离公式实现
  19. PHP单元测试PHPUnit
  20. 在 Windows 8、Windows 10 桌面模式下的 .NET Framework 程序中,引用 Windows.Runtime 的 API。

热门文章

  1. 我的Git教程 之 初始化本地库
  2. 使用EntityFrameworkCore 连接 MySql
  3. 手淘的移动端适配方案flexible
  4. 【原】中文Ubuntu主目录下的文档文件夹改回英文
  5. C语言初学
  6. 2-nginx 安装
  7. zk使用原理
  8. onkeydown事件
  9. java中线程同步问题
  10. java linux ssh jar