会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
挥不去的执念
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
下一页
2020年9月10日
伪类随着浏览器窗口大小变更,改变宽度(resize)
摘要: 伪类随着浏览器窗口大小变更,改变宽度(resize),伪类样式的更改 css .plan_wrapper .plan_com:not(:last-child)::after{ content:''; width:400px; height:1px; border-bottom:2px dashed
阅读全文
posted @ 2020-09-10 11:56 挥不去的执念
阅读(670)
评论(0)
推荐(0)
2020年9月8日
css 背景图片和渐变色并存
摘要: background:url(/images/cancel.png)no-repeat 13px center,linear-gradient(to bottom, #e7b957, #f28413); 注意点:1.渐变属性与图片属性中间用逗号隔开2.图片属性要在渐变属性之前 此外,backgrou
阅读全文
posted @ 2020-09-08 16:13 挥不去的执念
阅读(1806)
评论(0)
推荐(0)
2020年8月31日
sublime text3 自动补全标签方法,提升代码速度
摘要: 点击首选项——设置-用户——在配置中增加一句代码: "auto_close_tags": true
阅读全文
posted @ 2020-08-31 18:05 挥不去的执念
阅读(657)
评论(0)
推荐(0)
2020年8月7日
Swiper插件超链接失效
摘要: Swiper插件超链接失效 simulateTouch : false, <script type="text/javascript"> $(function(){ /* 滑动插件 开始 */ //调用并初始化滑动插件 var mySwiper = new Swiper(".swiper-conte
阅读全文
posted @ 2020-08-07 16:17 挥不去的执念
阅读(479)
评论(0)
推荐(0)
2020年8月6日
点击某一个标签的时候实时获取该标签在这类标签中的索引值,以便进行其他操作。
摘要: 在div中,有一类div标签,class值为div1,数量不等,有多个。我需要在点击某一个标签的时候实时获取该标签在这类标签中的索引值,以便进行其他操作。 <!DOCTYPE html> <html> <head> <style> div { width:60px; height:60px; mar
阅读全文
posted @ 2020-08-06 11:42 挥不去的执念
阅读(217)
评论(0)
推荐(0)
2020年7月8日
页面加载时滚动到指定的div
摘要: 页面加载时滚动到指定的div <!DOCTYPE html> <html> <head> <title></title> <script src="/Scripts/jquery-1.8.3.min.js" type="text/javascript"></script> <body> <div i
阅读全文
posted @ 2020-07-08 18:20 挥不去的执念
阅读(707)
评论(0)
推荐(0)
2020年7月7日
百度地图API实现标注多个地点和地址提示
摘要: 百度地图API实现标注多个地点和地址提示 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html x
阅读全文
posted @ 2020-07-07 17:06 挥不去的执念
阅读(1731)
评论(0)
推荐(0)
用@keyframes和animation制作css动画
摘要: 用@keyframes和animation制作css动画,可以有图标左右摇摆的动作 .div{ -webkit-animation: icon-bounce 0.5s alternate; -moz-animation: icon-bounce 0.5s alternate; -o-animatio
阅读全文
posted @ 2020-07-07 13:31 挥不去的执念
阅读(250)
评论(0)
推荐(0)
2020年6月30日
JS判断iPhone|iPad|iPod|iOS|Android客户端
摘要: if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) { //alert(navigator.userAgent); window.location.href ="iPhone.html"; } else if (/(Android)/i.
阅读全文
posted @ 2020-06-30 14:27 挥不去的执念
阅读(390)
评论(0)
推荐(0)
2020年6月23日
height:100vh,width:100vw
摘要: 1.em 在做手机端的时候经常会用到的做字体的尺寸单位 说白了 em就相当于“倍”,比如设置当前的div的字体大小为1.5em,则当前的div的字体大小为:当前div继承的字体大小*1.5 但是当div进行嵌套的时候,em始终是按照当前div继承的字体大小来缩放,参照后面的例子。 2.rem 这里的
阅读全文
posted @ 2020-06-23 11:43 挥不去的执念
阅读(5950)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告