随笔分类 -  HTML

摘要:介绍 Less 是 CSS 的预处理语言之一,为 CSS 增添了变量、Mixin、函数等特性,使CSS更易于维护扩展。 嵌套(Nesting) .header { .navgation: { font-size: 30px; } } 编译结果: .header .navgation: { font- 阅读全文
posted @ 2023-02-21 15:53 时光凉忆 阅读(285) 评论(0) 推荐(0) 编辑
摘要:1.返回html文档元素document.documentElement 2.文档的高度document.body.clientHeight 3.html文档可视高度==页面可见区域的高度document.documentElement.clientHeight 4.获取元素距离文档顶部的距离doc 阅读全文
posted @ 2019-05-22 14:21 时光凉忆 阅读(304) 评论(0) 推荐(0) 编辑
摘要:空心箭头:示例图片 <b class="bottom"><i class="bottom-arrow1"></i><i class="bottom-arrow2"></i></b> .post_list .spread .bottom{ width:20px; height:20px; positi 阅读全文
posted @ 2019-04-26 16:05 时光凉忆 阅读(381) 评论(0) 推荐(0) 编辑
摘要:添加横向滚动条ul { display: flex; overflow-x: auto; overflow-y: hidden; white-space: nowrap; }隐藏滚动条,保留滚动效果 ul::-webkit-scrollbar { display: none; } 阅读全文
posted @ 2019-04-26 13:46 时光凉忆 阅读(766) 评论(0) 推荐(0) 编辑
摘要:点击处理: 消除a标签点击后的边框,颜色(background:#fff) 1:a:focus{outline:none;} button去除边框 1:border:none 2:border:0px(不建议) 3:button::after { content: none; } 伪类清楚浮动: . 阅读全文
posted @ 2018-08-04 17:59 时光凉忆 阅读(614) 评论(0) 推荐(0) 编辑

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