随笔分类 -  css

摘要:CSS3,背景图设置,让图左对齐,C垂直居中显示 阅读全文
posted @ 2022-10-23 17:28 前端那点事 阅读(501) 评论(0) 推荐(0)
摘要:css中margin负值的运用 阅读全文
posted @ 2022-06-11 23:28 前端那点事 阅读(43) 评论(0) 推荐(0)
摘要:css多行文本溢出显示省略号 阅读全文
posted @ 2022-06-11 23:26 前端那点事 阅读(53) 评论(0) 推荐(0)
摘要:css实现单行文本溢出显示省略号 阅读全文
posted @ 2022-06-11 23:24 前端那点事 阅读(66) 评论(0) 推荐(0)
摘要:css中的子选择器 效果: 阅读全文
posted @ 2022-01-02 14:04 前端那点事 阅读(76) 评论(0) 推荐(1)
摘要: 阅读全文
posted @ 2020-11-08 18:59 前端那点事 阅读(103) 评论(0) 推荐(0)
摘要:flex布局中 align-content 和align-items的区别 阅读全文
posted @ 2020-11-08 18:27 前端那点事 阅读(572) 评论(0) 推荐(0)
摘要:flex align-content 设置侧抽上的子元素的排列方式(多行有效) 阅读全文
posted @ 2020-11-08 18:25 前端那点事 阅读(264) 评论(0) 推荐(0)
摘要:前端文字行高理解 阅读全文
posted @ 2020-05-31 21:11 前端那点事 阅读(395) 评论(0) 推荐(0)
摘要:flex flex-shrink的用法,收缩规则 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalab 阅读全文
posted @ 2020-05-01 20:24 前端那点事 阅读(1371) 评论(0) 推荐(0)
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, 阅读全文
posted @ 2020-05-01 19:54 前端那点事 阅读(877) 评论(0) 推荐(0)
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, 阅读全文
posted @ 2020-05-01 18:13 前端那点事 阅读(2233) 评论(0) 推荐(1)
摘要:css flex 动态元素缩小的技巧 阅读全文
posted @ 2020-05-01 09:51 前端那点事 阅读(1024) 评论(0) 推荐(0)
摘要:效果图: 阅读全文
posted @ 2019-10-08 14:53 前端那点事 阅读(710) 评论(0) 推荐(0)
摘要:ul li:first-child{ } 第一个ul li:last-child{ } 最后一个ul li:nth-child(4){ } 指定第几个,4就是代表第四个ul li:nth-child(2n+1){background:red;}/*匹配第1、第3、第5、…个li*/ul li:nth 阅读全文
posted @ 2019-09-11 10:14 前端那点事 阅读(10023) 评论(2) 推荐(1)
摘要: 阅读全文
posted @ 2019-09-07 21:47 前端那点事 阅读(871) 评论(0) 推荐(0)
摘要:如何控制背景图片的平铺方式? 应用场景:可以通过背景图片的平铺来降低图片的大小,提升速度网页的访问 阅读全文
posted @ 2019-09-07 21:29 前端那点事 阅读(1476) 评论(0) 推荐(0)
摘要:优先级之权重问题 阅读全文
posted @ 2019-09-07 20:49 前端那点事 阅读(340) 评论(0) 推荐(0)
摘要:1.什么是优先级作用:当多个选择器选中同一个标签,并且给同一个标签设置相同的属性时,如何层叠就由优先级来确定 阅读全文
posted @ 2019-09-07 20:04 前端那点事 阅读(268) 评论(0) 推荐(0)
摘要:css三大特效之层叠性 阅读全文
posted @ 2019-09-07 19:50 前端那点事 阅读(228) 评论(0) 推荐(0)