方案一: 设置tranform/scale 首先设置内容固定宽度、自动高度(以下举例) width: 375px; height: auto; 通过获取窗口的宽度与固定宽度相除,获得缩放比例 const scaleValue=window.innerWidth / 375 在html层,添加一段sc ...
分类:
移动开发 时间:
2020-07-28 22:30:53
阅读次数:
105
启动windows平台下的Socket 1 #define WIN32_LEAN_AND_MEAN 2 #include<windows.h> 3 #include<WinSock2.h> 4 5 //#pragma comment(lib,"ws2_32.lib") 6 7 int main() ...
透视函数其实就是我们excel中常用的数据透视表相似,先来看个例子。 以下是准备的数据源,数据是电商系统中用户的行为数据(浏览,收藏,加购,成交,评分等),score为统计次数。 对应的字段分别为 租户id,用户id,商品编码Id,行为事件代码,当日统计次数,统计日期。 现在我们要转换成目标的数据是 ...
分类:
其他好文 时间:
2020-07-28 17:17:13
阅读次数:
131
vue增强第三方UI库(element-ui) 目前笔者了解有以下思路拓展第三方ui库,此系列以element-ui作为例子 指令. 混入. 二次封装. fork一份element-ui仓库,修改代码进行打包并引入. 实践案例 指令. el-tooltip增强:v-el-click-tooltip, ...
分类:
其他好文 时间:
2020-07-28 17:15:43
阅读次数:
91
(ll_env)learning_log$ pip install Django 执行该命令,始终报错,如上图 解决方法如下: pip install -i http://pypi.douban.com/simple djanggo 结果: ...
分类:
其他好文 时间:
2020-07-28 14:04:44
阅读次数:
135
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0 ...
分类:
移动开发 时间:
2020-07-28 00:01:53
阅读次数:
111
在BFC布局规则中提到内部Box垂直方向距离由margin决定,属于同一个BFC的两个相邻Box的margin会发生重叠。 总结出margin重叠三个条件 1、属于同一个BFC 2、相邻的Box 3、块级元素 常见margin重叠的两种方式: <!DOCTYPE html> <html> <head ...
分类:
其他好文 时间:
2020-07-28 00:01:01
阅读次数:
82
开发技术 flaskscrapymysqlecharts 运行截图 ...
分类:
编程语言 时间:
2020-07-27 13:56:51
阅读次数:
92
html:<a v-on:mouseover="changeActive($event)" v-on:mouseout="removeActive($event)" @click="backTOP" style="width: 39px;height: 39px;position: fixed;bo ...
分类:
其他好文 时间:
2020-07-27 13:49:30
阅读次数:
79
重分发: AR1配置信息 <Huawei>undo terminal monitor <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]user-interface console 0 [Huaw ...
分类:
其他好文 时间:
2020-07-27 13:45:56
阅读次数:
81