![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
宋云科技
很惰,什么都没留下
展开
-
H5项目中通过iframe引入语音导览解决微信jsapi关于同一级域名二级域名跨域问题解决方案
在项目的入口文件App.js中<iframe src="https://www.abc.com/" style="position: absolute; display: block; border: 0px; top: 0px; left: 0px; width: 375px; height: 603px;"></iframe>在项目的html文件中引入必需的js文件https://res2.wx.qq.com/open/js/jweixin-1.6.0.js&l.转载 2022-02-13 16:28:45 · 330 阅读 · 0 评论 -
electron 静默打印,及 打印机状态汇总
electron 获取打印机列表winprints = new BrowserWindow({ show: false }); console.log(winprints.webContents.getPrinters())获取到的结果为:{ name: 'Zebra_LP2844', description: 'Zebra LP2844', ...转载 2019-06-13 18:36:25 · 6941 阅读 · 4 评论 -
滚动条下拉时加载更多内容
$(function(){ $(window).scroll(function() { var scrollTop = $(this).scrollTop(),scrollHeight = $(document).height(),windowHeight = $(this).height(); var positionValue = (scr...转载 2019-02-19 17:57:56 · 1261 阅读 · 0 评论 -
移动端访问PC站点时自动跳转至移动站点
方法一: 百度Site APP的uaredirect.js 实现手机访问,自动跳转<script src="http://siteapp.baidu.com/static/webappservice/uaredirect.js" type="text/JavaScript"></script><script type="text/javascript">..转载 2019-01-19 16:54:39 · 1248 阅读 · 1 评论 -
div下子div水平垂直居中
网上其他地方已讲述过对其的不同实现方式,今天主要做一个详细的汇总,希望对大家有帮助。ps:我面试的时候就被问到过这个问题,当时都回答错了,蓝瘦。 假设父div的类名为father,子div的类名为son。在html中的形式如下:<div class="father"> <div class="son"> </div>接下...转载 2018-12-06 16:29:50 · 287 阅读 · 0 评论 -
bootstrap垂直居中
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>bootstrap垂直居中</title> <link rel="stylesheet" href=&qu原创 2018-12-06 16:27:59 · 2547 阅读 · 0 评论 -
input单选框radio点击选中、取消选中
<input type="radio" onclick="if(this.c==1){this.c=0;this.checked=0}else this.c=1">原创 2018-12-25 15:27:06 · 7610 阅读 · 3 评论 -
bootstrap改变container宽度
在自己的css文件中:@media (min-width: 1200px) { .container{ max-width: 970px; }}原创 2018-12-06 16:28:35 · 10427 阅读 · 0 评论 -
多选框给A标签href赋值
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style type="text/css">原创 2018-12-06 16:27:13 · 571 阅读 · 0 评论 -
js让css高度等于宽度
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>单一DIV情况</title></head><body><div id=原创 2018-12-06 16:26:13 · 1546 阅读 · 0 评论