盒模型的基本组成包括:外边距(margin)内边距(padding) 边框(border)元素(element,content) 当上下相邻的两个块元素相遇时,如果上面的元素有下外边距margin-bottom,下面的元素有上外边距margin-top,则他们之间的垂直间距不是margin-bott ...
分类:
其他好文 时间:
2019-12-09 01:29:27
阅读次数:
104
什么是跨域?由于浏览器具有同源策略的限制,所以在浏览器发送 Ajax 请求时,当前域名和ajax请求发送的域名不通,则浏览器会阻止. 如何解决跨域? cors,本质上通过设置响应头来解决(主流的方式). [代码实例] jsonp,用巧妙的方式绕过浏览器同源策略的限制. (只能发GET请求) [代码实 ...
分类:
其他好文 时间:
2019-12-08 12:18:15
阅读次数:
105
1.盒模型 margin:外边距 ;margin-top/margin-left ; margin-bottom/margin-right 外边距合并:当两个垂直外边距相遇时,它们将形成一个外边距; 可以使用padding或border分开两个外边距; padding:内边距 ;padding-to ...
分类:
其他好文 时间:
2019-12-07 22:59:44
阅读次数:
116
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. Example ...
分类:
其他好文 时间:
2019-12-07 12:18:43
阅读次数:
81
HTML加载时发生了什么 在页面加载时,浏览器把获取到的HTML代码解析成1个DOM树,DOM树里包含了所有HTML标签,包括display:none隐藏,还有用JS动态添加的元素等。 浏览器把所有样式(用户定义的CSS和用户代理)解析成样式结构体 DOM Tree 和样式结构体组合后构建rende ...
分类:
其他好文 时间:
2019-12-07 10:44:21
阅读次数:
93
1 <div id="AllanboltSignature"> 2 <p id="PSignature" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 60px; backgrou ...
分类:
其他好文 时间:
2019-12-06 13:38:40
阅读次数:
93
序列模型问题 给定一个序列, 预测下一个出现的item. 如字迹预测, 语句单词预测, 行为预测等等. LSTM 网络 Long Short Term 网络,一般就叫做 LSTM ,是一种 RNN 特殊的类型,可以学习长期依赖信息。LSTM 通过刻意的设计来避免长期依赖问题。记住长期的信息在实践中是... ...
分类:
其他好文 时间:
2019-12-06 11:35:04
阅读次数:
100
弹框 整个jap 页面 <%@ page language="java" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4 ...
分类:
其他好文 时间:
2019-12-06 09:30:10
阅读次数:
76
static: 默认布局。元素出现在正常的流中(忽略 top, bottom, left, right 或者 z-index 声明)。 absolute: 生成绝对定位的元素,相对于 static 定位以外的第一个父元素进行定位。 元素的位置通过 "left", "top", "right" 以及 ...
分类:
其他好文 时间:
2019-12-06 00:31:42
阅读次数:
129