会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sameer的史迪仔
导航
博客园
首页
新随笔
联系
订阅
管理
公告
上一页
1
···
5
6
7
8
9
10
下一页
2017年6月5日
Z遮罩层完全覆盖页面
摘要: 不要使用absolute定位,用fixed就行。然后 background:rgba(0, 0, 0, 0.5); position:fixed; z-index: 100; left:0; right:0; top:0; bottom:0;
阅读全文
posted @ 2017-06-05 09:52 sameer的史迪仔
阅读(127)
评论(0)
推荐(0)
2017年6月3日
页面加载完成时
摘要: $(function() { // 任何需要执行的js特效 $("table tr:nth-child(even)").addClass("even"); });
阅读全文
posted @ 2017-06-03 18:08 sameer的史迪仔
阅读(94)
评论(0)
推荐(0)
文字超出不换行,用省略号表示
摘要: overflow: hidden; //超出部分隐藏 white-space: nowrap; //不换行 text-overflow:ellipsis; //文字超出部分用省略号表示 以上为单行超出 多行的话,可以用 overflow: hidden; /*文字超出用省略号*/ text-over
阅读全文
posted @ 2017-06-03 12:47 sameer的史迪仔
阅读(842)
评论(1)
推荐(0)
去掉最后一个元素的边线
摘要: 1,如果直接用border实现的,直接使用list(边线所在元素的类名) list:last-child{border:0;} 2,如果是使用伪元素实现的,list:last-child:before{border:0}
阅读全文
posted @ 2017-06-03 12:18 sameer的史迪仔
阅读(203)
评论(0)
推荐(0)
2017年5月31日
电话点击即可拨打
摘要: <a href="tel:7283121239">7283121239</a>
阅读全文
posted @ 2017-05-31 15:38 sameer的史迪仔
阅读(122)
评论(0)
推荐(0)
制作对话的三角形
摘要: 1,两个三角形重合,小的覆盖大的,未覆盖的地方就是三角形的两条边
阅读全文
posted @ 2017-05-31 15:34 sameer的史迪仔
阅读(106)
评论(0)
推荐(0)
active在iphone上不起作用
摘要: 在js中加一个空的touchstart函数 $(function(){ document.body.addEventListener('touchstart',function(){ }); 或在<body ontouchstart="">
阅读全文
posted @ 2017-05-31 15:15 sameer的史迪仔
阅读(136)
评论(0)
推荐(0)
jquery选择后代以及toggle,toggleClass用法
摘要: $("#id").find(".classname") 选择id为xx下的类名为xx的元素 toggle $(this).next(".classname").toggle() 点击当前元素时,它的下一个名为xx的元素会显示,再次点击会隐藏 toggleClass $(this).find(".up
阅读全文
posted @ 2017-05-31 15:08 sameer的史迪仔
阅读(160)
评论(0)
推荐(0)
button点击变换颜色时出现一个蓝色边框
摘要: 给button添加一个outline:none;
阅读全文
posted @ 2017-05-31 14:58 sameer的史迪仔
阅读(216)
评论(0)
推荐(0)
表格边框的实现
摘要: 1.给表格加边框,再给td加边框,重合的边框使用border:0;去掉,注意要在html的table标签上加上border=“0” cellspacing=“0” cellpadding=“0”,在css中加不起作用 2可以令border=0,cellspacing=1,,然后设置table颜色和单
阅读全文
posted @ 2017-05-31 14:51 sameer的史迪仔
阅读(204)
评论(1)
推荐(0)
上一页
1
···
5
6
7
8
9
10
下一页