1.使用浮动来设置二列布局利用浮动和块级元素实现的左侧宽度固定,右侧自适应宽度的布局方式 <div class="left">left</div> <div class="right">right</div> /* css */ .left { float: left; width: 100px; ...
分类:
Web程序 时间:
2020-07-11 19:33:58
阅读次数:
85
Rotate List (M) 题目 Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = ...
分类:
其他好文 时间:
2020-07-11 09:40:09
阅读次数:
39
absolute 生成绝对定位的元素,相对于 static 定位以外的第一个父元素进行定位。 元素的位置通过 "left", "top", "right" 以及 "bottom" 属性进行规定。 fixed 生成绝对定位的元素,相对于浏览器窗口进行定位。 元素的位置通过 "left", "top", ...
分类:
Web程序 时间:
2020-07-10 19:30:02
阅读次数:
91
1 # 边框线 2 border_set = Border(left=Side(border_style='thin', color='000000'), 3 right=Side(border_style='thin', color='000000'), 4 top=Side(border_sty ...
分类:
其他好文 时间:
2020-07-10 09:58:10
阅读次数:
188
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ ...
分类:
其他好文 时间:
2020-07-09 20:53:22
阅读次数:
74
[JavaScript 中文开发手册Assignment Operators (Operators) - JavaScript 中文开发手册赋值运算符(assignment operator)基于右值(right operand)的值,给左值(left operand)赋值。] 本文标题:Assig... ...
分类:
编程语言 时间:
2020-07-09 12:29:15
阅读次数:
74
1.层序遍历,一个队列存放节点,一个队列存放到当前节点的值。 2.递归 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * ...
分类:
编程语言 时间:
2020-07-07 16:00:52
阅读次数:
49
方法1:递归 /** * Definition for a binary tree node. * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ bool hasPath ...
分类:
其他好文 时间:
2020-07-07 10:22:49
阅读次数:
60
再f11全屏时,会出现页面抖动得问题,是由于css盒子高度问题引起的,解决方法如下: html { overflow-x: hidden; overflow-y: auto;}body { width: 100vw; overflow: hidden; padding-right: calc(100 ...
分类:
其他好文 时间:
2020-07-07 09:56:59
阅读次数:
94
构建一颗二叉树,以列表形式打印 public class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int val){ this.val = val; } } import java.util.ArrayList;impo ...
分类:
其他好文 时间:
2020-07-07 00:00:49
阅读次数:
113