随笔分类 -  Css

摘要:一、容器属性 属性定义值 决定主轴的方向(即项目的排列方向)。 row(默认值):主轴为水平方向,起点在左端。 row-reverse:主轴为水平方向,起点在右端。 column:主轴为垂直方向,起点在上沿。 column-reverse:主轴为垂直方向,起点在下沿。 flex-wrap 默认情况下 阅读全文
posted @ 2018-04-19 11:20 kcat
摘要:一行 div{ width:100px;/*一定要写*/ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } 来源于 http://blog.csdn.net/u011546766/article/details/344467 阅读全文
posted @ 2017-01-20 16:10 kcat 阅读(166) 评论(0) 推荐(0)
摘要:引用js,自动算字体大小,响应式布局 <script> var iScale = 1; iScale = iScale / window.devicePixelRatio; document.write('<meta name="viewport" content="width=device-wid 阅读全文
posted @ 2016-12-12 16:37 kcat 阅读(375) 评论(0) 推荐(0)