会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
qq321722956
博客园
首页
新随笔
联系
订阅
管理
2021年5月28日
列表li利用before显示有序号数字
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> li{ list-style: none; /*影藏li前面的圆点*/ counter-increment: num
阅读全文
posted @ 2021-05-28 11:46 qq321722956
阅读(427)
评论(0)
推荐(0)
2021年1月13日
网页滚动一定距离,显示某个css属性
摘要: JS部分: <script> function getTop() { var mytop = $(document).scrollTop(); if (mytop > 100) { $(".s_down").css({ //网页向下滚动100px,显示的css属性 'box-shadow': '0
阅读全文
posted @ 2021-01-13 11:29 qq321722956
阅读(329)
评论(0)
推荐(0)
网页滚动一段距离,显示固定的导航栏(div)
摘要: js部分: <script> function getTop() { var mytop = $(document).scrollTop(); if (mytop > 400) { $(".fixed_banner").css({ 'display': 'block', 'top': 0, });
阅读全文
posted @ 2021-01-13 11:18 qq321722956
阅读(187)
评论(0)
推荐(0)
2020年12月12日
JavaScript实现点击复制
摘要: <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8"/> <title>demo</title> </head> <body> <div class="demo"> <p id="p1">这是P1标签的内容</p> <br/
阅读全文
posted @ 2020-12-12 08:08 qq321722956
阅读(161)
评论(0)
推荐(0)
2020年12月10日
利于SEO的链接处理方式
摘要: 1、通过用“点击打开”的方式,这样搜索引擎不会爬取该链接 <a type="submit" onclick="window.open('https://cnblogs.com')"></a> 2、链接加nofollow,告诉搜索引擎不爬取该内容 <a href="https://cnblogs.co
阅读全文
posted @ 2020-12-10 09:13 qq321722956
阅读(77)
评论(0)
推荐(0)
2020年12月8日
CSS延迟hover显示时间
摘要: <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <style> div{ transition: 0s background-color; } div:hover{ b
阅读全文
posted @ 2020-12-08 09:06 qq321722956
阅读(2095)
评论(0)
推荐(0)
2020年11月29日
常用CSS样式代码
摘要: 重要性标签 !important; 隐藏文本下划线:text-decoration: none; div文本或者内容溢出滚动条显示: 需要设置尺寸如 height: 200px; width: 200px; a/横纵都出滚动条:overflow:auto; b/横向滚动条:overflow-x:au
阅读全文
posted @ 2020-11-29 20:49 qq321722956
阅读(143)
评论(0)
推荐(0)
公告