• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
梦见一只电子羊
meet me tonight in the dreamland
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 ··· 8 下一页

2017年9月20日

JS生成二维码
摘要: 演示: https://lanleilin.github.io/lanTools/generateQRcode/qrCode.html 代码地址: https://github.com/lanleilin/lanTools/tree/master/generateQRcode 方法,在html中引入 阅读全文
posted @ 2017-09-20 19:39 梦见一只羊 阅读(285) 评论(0) 推荐(0)
 
 

2017年9月4日

为IE和chrome编写单独的样式
摘要: flex布局在IE10上不支持,为IE10编写特定的样式可以用判断navigator.userAgent 的方法 css: html[data-useragent*='MSIE 10.0'] .LoginContainer { width: 350px; } html[data-useragent* 阅读全文
posted @ 2017-09-04 18:52 梦见一只羊 阅读(528) 评论(0) 推荐(0)
 
 

2017年9月3日

几个简单的VBS脚本程序以及其JS实现
摘要: 1 语音发声脚本,调用sapi.spvoice读英语hh 保存为say.vbs,点击打开就可以念诗: 使用JS要有activeX控件 可以调用百度的API: 2 自动发送消息: vbs脚本: 打开桌面上发给银翼的对话框,即可发送复制在剪切板的消息 3 打开桌面应用 保存为open.vbs: 即可打开 阅读全文
posted @ 2017-09-03 14:55 梦见一只羊 阅读(7620) 评论(0) 推荐(0)
 
 

2017年8月31日

vue组件中使用iframe元素
摘要: 需要在本页面中展示vue组件中的超链接,地址栏不改变的方法: 需要使同层元素不被覆盖,可以加 不过html5有新的dialog元素用于对话框。 iframe的一些方法: 获取iframe内容: 自适应 iframe: 即1去掉滚动条,2设置宽高 例子: 阅读全文
posted @ 2017-08-31 11:51 梦见一只羊 阅读(59016) 评论(1) 推荐(0)
 
 

2017年8月25日

nginx简易部署
摘要: Nginx (engine x) 可作为web反向代理服务器。能够代理外部网络上的主机,访问内部网络 1 首先windows下载nginx :http://nginx.org/download/nginx-1.6.2.tar.gz 2 打开nginx.conf,将需要代理文件路径写在root中,端口 阅读全文
posted @ 2017-08-25 13:55 梦见一只羊 阅读(1549) 评论(0) 推荐(0)
 
 

2017年8月15日

webstorm使用技巧
摘要: 更新 1 添加vue的高亮显示: file-settings-editor-html添加*.vue 同时在settings-plugins下载vuejs和vue-for-idea 2 支持es6语法 settings-language-es6 3 试用了visual studio code,记录一下 阅读全文
posted @ 2017-08-15 15:54 梦见一只羊 阅读(1194) 评论(0) 推荐(0)
 
 

2017年8月8日

优化web前端性能的几个方法
摘要: 1 减少http请求, a、 合并脚本跟样式文件,如可以把多个 CSS 文件合成一个,把多个 JS 文件合成一个。 b、 CSS Sprites 利用 CSS background 相关元素进行背景图绝对定位,把多个图片合成一个图片。 2、使用浏览器缓存 设置http头中的cache-control 阅读全文
posted @ 2017-08-08 12:00 梦见一只羊 阅读(248) 评论(0) 推荐(0)
 
 

2017年8月7日

图片预加载和懒加载的实现方法
摘要: 图片预加载即提前加载图片,可保证图片快速、无缝地发布,用户需要查看时可直接从本地缓存中渲染,适用于图片占据很大比例的网站。 方法1,在CSS background中加载:会增加页面的整体加载时间 方法2,JS new image对象,设置src加载: 方法3,Ajax预加载,new Image()对 阅读全文
posted @ 2017-08-07 01:36 梦见一只羊 阅读(11269) 评论(0) 推荐(0)
 
 

2017年8月5日

检测浏览器内核
摘要: 打开即可检测浏览器版本信息:https://lanleilin.github.io/checkBrowser/index.html html: 阅读全文
posted @ 2017-08-05 12:38 梦见一只羊 阅读(1555) 评论(0) 推荐(0)
 
 

2017年8月4日

theMatrix代码雨效果
摘要: 做了一个代码雨效果放在个人主页: https://lanleilin.github.io/lanGallery/index.html 代码: 阅读全文
posted @ 2017-08-04 14:44 梦见一只羊 阅读(1112) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 ··· 8 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3