摘要:
body{ filter:progid:DXImageTransform.Microsoft.BasicImage(graysale=1); -webkit-filter: grayscale(100%); } 网站页面变成灰色 表示哀悼 阅读全文
摘要:
需要china.js文件另存为本地,单独引用 (function (root, factory) { if (typeof define 'function' && define.amd) { // AMD. Register as an anonymous module. define(['exp 阅读全文
摘要:
echarts中国地图按照华中、华北、华东等设置,完整代码附上 <!DOCTYPE html> <html style="height: 100%"> <head> <meta charset="utf-8"> </head> <body style="height: 100%; margin: 0 阅读全文
摘要:
使用原生js检测当前IE浏览器版本是否为IE8及以下浏览器版本并做出提示,代码如下: var DEFAULT_VERSION = 8.0; var ua = navigator.userAgent.toLowerCase(); var isIE = ua.indexOf("msie")>-1; va 阅读全文
摘要:
判断页面首次访问,并跳转到太阳能路灯网站 1、首页访问页面时 window.name==""; 2、随后给其起名 window.name="人民大学在职研究生";(可以任意起名) 3、接下来当前窗口命名为人民大学在职研究生; 完整代码 <!DOCTYPE html> <html> <head> <t 阅读全文
摘要:
制作图文列表 <template> <view class="content"> <view class="page-section indexListBox"> <view class="indexList" v-for="(item , index) in homePosts" :key="in 阅读全文
摘要:
有没有经常遇到一些样式每次写都要用百度呢?我收集了一些我平时经常要用到的但又总是记不住的样式。 一、设置input 的placeholder的字体样式 input::-webkit-input-placeholder { /* Chrome/Opera/Safari */ color: red; } 阅读全文
摘要:
display: table-cell;实现并列div高度保持一致 <!DOCTYPE html> <html> <head> <title>并列div高度保持一致</title> <style type="text/css"> div{ border:2px solid red; width: 5 阅读全文
摘要:
用定时器setInterval实现几秒后页面自动跳转的另一个页面 <!DOCTYPE html> <html> <head> <title>用定时器实现几秒后页面自动跳转的另一个页面</title> <script src="/Scripts/jquery-1.8.3.min.js" type="t 阅读全文
摘要:
<!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> div { background: none; border: 0; box-sizing: border-box; margin: 1em; padding: 阅读全文