菜鸟教程 "讲解" : 这里只讲解一下 相对定位 ,与绝对定位 relative:相对定位 1.相对定位是相对于自己原来的位置进行定位 定位之后空间不释放,也就是说如果有三个元素如果中间一个元素 使用相对定位之后偏离了原来的元素,那么第三个元素不会挤到第二个 元素中, absolute:绝对定位: ...
分类:
Web程序 时间:
2020-04-28 23:23:52
阅读次数:
72
吸顶功能 吸顶是一种比较常见的交互效果,当页面滑出屏幕边界,标题会自动吸附在屏幕边缘,用于提示用户。 基本原理 在H5中实现的基本原理就是判断当前页面滑动的距离scrollTop和标题距离页面顶部距离offsetTop的关系,进而设置标题的position = fixed。这里需要明白scrollT ...
分类:
其他好文 时间:
2020-04-28 17:15:04
阅读次数:
50
css: <style> span::before{ content: "*"; color: #ff0000; font-size: 25px; position: relative; top: 10px; } </style> <span>必填项</span> 如果把红星加到后面,css写为sp ...
分类:
Web程序 时间:
2020-04-28 14:45:37
阅读次数:
278
原文:十九种Elasticsearch字符串搜索方式终极介绍 前言 刚开始接触Elasticsearch的时候被Elasticsearch的搜索功能搞得晕头转向,每次想在Kibana里面查询某个字段的时候,查出来的结果经常不是自己想要的,然而又不知道问题出在了哪里。出现这个问题归根结底是因为对于El... ...
分类:
其他好文 时间:
2020-04-28 00:10:19
阅读次数:
56
论文地址: "https://arxiv.org/abs/1911.04474" Abstract BiLSTMs结构在NLP的任务中广泛应用,最近,全连接模型Transformer大火,它的 self attention 机制和强大的并行计算能力使其在众多模型中脱颖而出,但是,原始版本的 Tran ...
分类:
Web程序 时间:
2020-04-27 22:43:45
阅读次数:
154
Horizontally center: .div_out { width: 100vw; height: 100vh; display: flex; justify-content: center;}.div_in { width: 80%; height: 80%; background-ima ...
分类:
Web程序 时间:
2020-04-27 17:19:13
阅读次数:
70
var position = $(".element").offset(); position.top = position.top-60; $("html,body").animate({scrollTop:position.top}, 100); 首先获取某元素的位置 第二部 top 就是元素在 ...
分类:
Web程序 时间:
2020-04-27 17:12:05
阅读次数:
300
上午在读取文件时,发生错误: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position 0: invalid start byte 切换编码:gbk,正常解决。 但有时,utf-8和gbk都不好使用,使用notepad+ ...
分类:
编程语言 时间:
2020-04-27 15:30:03
阅读次数:
74
CSS属性——背景、颜色、边框 背景的属性: 背景即background-加上属性包括image(图片),color(颜色),attachment(是否随窗口的移动而移动),repeat(重复方向),position(位置)等等; 重复的属性有:no-repeat(不重复),repeat-x(按x方 ...
分类:
Web程序 时间:
2020-04-27 13:15:12
阅读次数:
72
Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is t ...
分类:
其他好文 时间:
2020-04-26 19:22:16
阅读次数:
72