摘要: 伪类随着浏览器窗口大小变更,改变宽度(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 挥不去的执念 阅读(647) 评论(0) 推荐(0) 编辑
摘要: background:url(/images/cancel.png)no-repeat 13px center,linear-gradient(to bottom, #e7b957, #f28413); 注意点:1.渐变属性与图片属性中间用逗号隔开2.图片属性要在渐变属性之前 此外,backgrou 阅读全文
posted @ 2020-09-08 16:13 挥不去的执念 阅读(1711) 评论(0) 推荐(0) 编辑
摘要: 点击首选项——设置-用户——在配置中增加一句代码: "auto_close_tags": true 阅读全文
posted @ 2020-08-31 18:05 挥不去的执念 阅读(633) 评论(0) 推荐(0) 编辑
摘要: Swiper插件超链接失效 simulateTouch : false, <script type="text/javascript"> $(function(){ /* 滑动插件 开始 */ //调用并初始化滑动插件 var mySwiper = new Swiper(".swiper-conte 阅读全文
posted @ 2020-08-07 16:17 挥不去的执念 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 在div中,有一类div标签,class值为div1,数量不等,有多个。我需要在点击某一个标签的时候实时获取该标签在这类标签中的索引值,以便进行其他操作。 <!DOCTYPE html> <html> <head> <style> div { width:60px; height:60px; mar 阅读全文
posted @ 2020-08-06 11:42 挥不去的执念 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 页面加载时滚动到指定的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 挥不去的执念 阅读(689) 评论(0) 推荐(0) 编辑
摘要: 百度地图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 挥不去的执念 阅读(1681) 评论(0) 推荐(0) 编辑
摘要: 用@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 挥不去的执念 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 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 挥不去的执念 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 1.em 在做手机端的时候经常会用到的做字体的尺寸单位 说白了 em就相当于“倍”,比如设置当前的div的字体大小为1.5em,则当前的div的字体大小为:当前div继承的字体大小*1.5 但是当div进行嵌套的时候,em始终是按照当前div继承的字体大小来缩放,参照后面的例子。 2.rem 这里的 阅读全文
posted @ 2020-06-23 11:43 挥不去的执念 阅读(5804) 评论(0) 推荐(0) 编辑