![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
文章平均质量分 87
撸代码的橘猫
这个作者很懒,什么都没留下…
展开
-
单行和多行文本超出省略
1. 单行文本超出省略: overflow: hidden; text-overflow:ellipsis; white-space: nowrap; 还需要加宽度width属来兼容部分浏览。 2. 多行文本溢出显示省略号: 2.1 只局限与浏览器内核是webkit的方法: css属性 作用 display: -webkit-box; 必须结合的属性 ,将对象作为弹性伸缩盒子模型...转载 2020-07-05 22:51:34 · 371 阅读 · 0 评论 -
html + css 面试
“流”概念 ‘流’是css的一种基本定位和布局机制,HTML默认的布局机制就是’流布局’,是一种自上而下(例如块级元素div),从左到右排列的布局方式 盒模型 两种类型 & 区别 IE盒模型(怪异盒模型) W3C盒模型(标准盒模型) width = border + padding + content width = content 一个块的宽度 = width ...原创 2020-04-27 17:30:18 · 1528 阅读 · 0 评论 -
css实现文字两端对齐
div { text-align-last:justify; -moz-text-align-last: justify; /* 兼容firefox */ text-align:justify; text-justify:distribute-all-lines; /* 兼容ie */ border: 1px solid #000; width: 150p...原创 2019-09-28 17:55:41 · 231 阅读 · 0 评论