随笔分类 -  css

摘要:在开发中修改第三方组件样式是很常见,但由于 scoped 属性的样式隔离,可能需要去除 scoped 或是另起一个 style 。这些做法都会带来副作用(组件样式污染、不够优雅),样式穿透在css预处理器中使用才生效。 less使用 /deep/ <style scoped lang="less"> 阅读全文
posted @ 2020-10-14 11:23 85号bobo 阅读(395) 评论(0) 推荐(0)
摘要:1. 常用css3的 @规则 有4类 @document @import @supports @media 2. @import 定义:从其他样式表倒入样式规则 1)定义一个样式规则 2)引入app.less 中样式规则并使用 3)定义的.border样式 i 用法一: ii 用法二: iii 用法 阅读全文
posted @ 2020-09-25 09:32 85号bobo 阅读(614) 评论(0) 推荐(0)
摘要:*{ -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } 阅读全文
posted @ 2020-09-25 09:30 85号bobo 阅读(606) 评论(0) 推荐(0)