![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
css
水果糕の
这个作者很懒,什么都没留下…
展开
-
uniapp ios圆角溢出不影藏的问题
代码: .list-img { position: relative; z-index: 1; overflow: hidden; height: 154px; text-align: center; border-radius: 5px; border:1px solid red; border-bottom-left-radius: 50px; margin-bottom: 24px; image { width: 100%; } } //这三行很关键 position: r原创 2022-02-18 10:33:58 · 1037 阅读 · 0 评论 -
常用的css代码
文章目录一、文本溢出...二、css如何设置滚动条样式1. webkit下面的CSS设置滚动条2.读入数据总结 一、文本溢出… 单行文本的溢出显示省略号 .text-space{ width:200px; overflow: hidden; text-overflow:ellipsis; white-space: nowrap; } 多行文本溢出显示省略号 .text-space{ overflow: hidden; text-overflow: ellipsis;原创 2021-07-15 16:03:29 · 47 阅读 · 0 评论 -
如何让position: fixed不再基于浏览器窗口定位
MDN对position: fixed有一个注释: 当元素祖先的 transform 属性非 none 时,容器由视口改为该祖先。 也就是说,只要给它的随便哪个祖先设上非none的transform,问题就解决了。这祖先可以是static的,也就是说随便哪个祖先都行。但是,由于要模拟手机体验,所以基于body元素比较妥。 比如说给body设一个transform: translateZ(0);,测试有效。 由于在PC环境下,我们通过媒体查询等手段限定了body的宽度,那么fixed元素也只会在这个宽度内原创 2021-03-30 12:12:12 · 756 阅读 · 0 评论