![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
王子小强强
花自开,人自落。路人行人过路人
展开
-
css让一个容器水平垂直居中,实战中,均有效果,方法选择看实际需要
方法一:position加margin 兼容性:主流浏览器均支持,IE6不支持 .wrap { width: 200px; height: 200px; background: yellow; position: relative; } .wrap .center { width: 100px; height: 100px; background: green; margin: auto; pos...原创 2019-01-09 14:16:42 · 167 阅读 · 1 评论 -
CSS实现div内文字显示两行,超出两行部分省略号显示
在搭建前台文章列表中,需要实现div内文字显示两行,超出的则省略号显示。 找了很多,都貌似只能一行显示。最后在百度知道找到答案。 答案转自百度知道,题主的自答。 用的是-webkit-私有属性。 text-overflow: -o-ellipsis-lastline; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; ...翻译 2019-01-22 16:36:11 · 1566 阅读 · 0 评论