随笔分类 -  CSS

vue引入外部样式只在当前文件生效
摘要:引入外部文件时,想要只在当前组件使用,但是我们使用如下方式时,会在全局使用。因为在scoped起作用的时候,import还没有引入这个文件 <style scoped> @import "../../xx.css" </style> 使用以下方式即可 <style scoped src="../.. 阅读全文
posted @ 2023-11-28 10:17 LeeToLee 阅读(383) 评论(0) 推荐(0) 编辑
CSS给文字加背景
摘要:CSS给文字加背景 阅读全文
posted @ 2022-06-20 16:23 LeeToLee 阅读(185) 评论(0) 推荐(0) 编辑
瀑布流的实现
摘要:瀑布流的实现 阅读全文
posted @ 2022-01-10 22:02 LeeToLee 阅读(223) 评论(0) 推荐(0) 编辑
table表格单元格设置文字溢出用省略号表示
摘要:table表格单元格设置文字溢出用省略号表示 阅读全文
posted @ 2021-12-01 11:05 LeeToLee 阅读(150) 评论(0) 推荐(0) 编辑
CSS3 单侧阴影效果
摘要:CSS3 单侧阴影效果 阅读全文
posted @ 2021-10-12 14:26 LeeToLee 阅读(41) 评论(0) 推荐(0) 编辑
前端HTML+CSS图片显示不全问题
摘要:前端HTML+CSS图片显示不全问题 阅读全文
posted @ 2021-09-23 16:17 LeeToLee 阅读(1963) 评论(0) 推荐(0) 编辑
CSS改变浏览器默认滚动条样式
摘要:.w11-con-right-con::-webkit-scrollbar-track { /* 定义滚动条轨道 内阴影+圆角*/ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); border-radius: 5px; background 阅读全文
posted @ 2021-02-14 21:40 LeeToLee 阅读(63) 评论(0) 推荐(0) 编辑
谷歌浏览器报警告
摘要:建议input标签有个autocomplete属性 autocomplete 用途: 主要是记住输入内容,下次提交表单或者浏览器回退后,还能保持表单内容不变。 阅读全文
posted @ 2021-01-14 15:16 LeeToLee 阅读(72) 评论(0) 推荐(0) 编辑
改变表单元素placeholder属性的样式
摘要:input::placeholder{ color: #fff; }// 中间 两个冒号 阅读全文
posted @ 2021-01-14 14:53 LeeToLee 阅读(77) 评论(0) 推荐(0) 编辑
使用CSS3属性box-shadow设置div四周边框都有阴影
摘要:box-shadow: 0 2px 16px #000, 0 0 1px #000, 0 0 1px #000; 参数可调 阅读全文
posted @ 2021-01-05 15:11 LeeToLee 阅读(1335) 评论(0) 推荐(0) 编辑
微信小程序,控制文字显示的行数
摘要:微信小程序,文字显示行数 阅读全文
posted @ 2020-09-03 17:33 LeeToLee 阅读(1259) 评论(0) 推荐(0) 编辑
<select>标签默认展示的文字
摘要:select标签 阅读全文
posted @ 2020-08-31 12:05 LeeToLee 阅读(1226) 评论(0) 推荐(0) 编辑
input 清除 默认样式
摘要:input 默认样式 阅读全文
posted @ 2020-08-28 23:09 LeeToLee 阅读(493) 评论(0) 推荐(0) 编辑
flex布局实现商品列表
摘要:item{ display: flex; justify-content: space-between; //两端对齐 flex-wrap: wrap; //换行 } 阅读全文
posted @ 2020-02-13 21:39 LeeToLee 阅读(1241) 评论(0) 推荐(0) 编辑
CSS 文本换行及指定行数显示
摘要:css 文本 阅读全文
posted @ 2020-02-13 21:35 LeeToLee 阅读(1755) 评论(0) 推荐(0) 编辑

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