随笔 - 45,  文章 - 0,  评论 - 2,  阅读 - 30144

随笔分类 -  css

offsetTop、offsetParent
摘要:HTMLElement.offsetTop 为只读属性,它返回当前元素相对于其 offsetParent 元素的顶部内边距的距离。 HTMLElement.offsetParent 是一个只读属性,返回一个指向最近的(指包含层级上的最近)包含该元素的定位元素或者最近的 table,td,th,bod 阅读全文
posted @ 2022-02-06 14:13 W1N9s 阅读(64) 评论(0) 推荐(0) 编辑
如何用 sass 定义网站配色
摘要:$colorMain: #008cba; // 主色值 $colorHover: darken($colorMain, 10%); $colorBgGray: lighten(grayscale($colorMain), 40%); $colorBorder: lighten(grayscale($ 阅读全文
posted @ 2021-11-27 01:16 W1N9s 阅读(64) 评论(0) 推荐(0) 编辑
css 元素定位后不遮挡后边的元素
摘要:css 设置: div { pointer-events: none; } 阅读全文
posted @ 2021-08-29 14:52 W1N9s 阅读(308) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示