![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
猫丞丞和兔飞飞~
活在当下
展开
-
rem适配
fnResize()window.onresize = function () { fnResize()}function fnResize() { var deviceWidth = document.documentElement.clientWidth || window.innerWidth // console.log(deviceWidth) if (deviceWidth >= 750) { deviceWidth = 750原创 2021-03-15 11:39:15 · 83 阅读 · 0 评论 -
text-overflow: ellipsis不生效的几种情况
text-overflow: ellipsis不生效的几种情况正常的写法:.firstLineEllipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; width: 100%;}没有给容器添加固定宽度容器不可以是flex布局,若要使用flex布局,可以用flex布局的父元素包裹...原创 2021-02-26 12:01:55 · 4467 阅读 · 0 评论