相邻的border会平分所占的区域,出现一个斜线, .my_triangle{ width: 10px; height: 10px; background-color: blue; border-width: 100px ; border-style: solid; border-left-colo ...
分类:
其他好文 时间:
2020-07-13 18:40:16
阅读次数:
71
添加删除记录(原生) 示例: /*style.css*/ @CHARSET "UTF-8"; #total { width: 450px; margin-left: auto; margin-right: auto; } ul { list-style-type: none; } li { bord ...
分类:
Web程序 时间:
2020-07-13 15:39:11
阅读次数:
71
脑筋急转弯 每只蚂蚁都一样,相遇之后,相当于两人互换身份,继续朝原来的方向前进。因此,找出距离朝向端点最远的蚂蚁需要走多久,就是答案。 class Solution { public int getLastMoment(int n, int[] left, int[] right) { int re ...
分类:
其他好文 时间:
2020-07-13 13:24:49
阅读次数:
54
饼图标签展示数值 配置项: option = { title: { text: '项目时间分布', left: 'center' }, tooltip: { trigger: 'item', formatter: '{a} <br/>{b} : {c} ({d}%)' }, legend: { or ...
分类:
其他好文 时间:
2020-07-13 11:34:37
阅读次数:
290
python语言: import re while True: try: line = raw_input() li = re.findall(r'[a-zA-z0-9 ]', line) s = ''.join(set(li)) dic = {} for x in s: dic[x] = line ...
分类:
编程语言 时间:
2020-07-12 22:08:22
阅读次数:
82
BFS和DFS DFS遍历使用递归(隐式使用栈): void dfs(TreeNode root) { if (root == null) { return; } dfs(root.left); dfs(root.right); } BFS遍历使用队列 void bfs(TreeNode root) ...
分类:
其他好文 时间:
2020-07-12 22:04:02
阅读次数:
66
圣杯布局 1.结构先加载主体,再加载左右 2.将三者都 float:left , 左右再加上一个position:relative(因为相对定位后面会用到)?3、middle 部分 width:100% 占满 ? 此时 middle 占满了,所以要把 left 拉到最左边,使用 marginlef ...
分类:
其他好文 时间:
2020-07-12 18:57:22
阅读次数:
74
创建Swram集群 docker swarm init 当前只有一个节点,开放防火墙2377端口 firewall-cmd --zone=public --add-port=2377/tcp 然后开启其他Docker虚拟机的Docker服务 将 docker swarm join --token S ...
分类:
其他好文 时间:
2020-07-12 17:09:54
阅读次数:
74
工具:Navicat Premium 封装的mysql。 1.表的创建 -- 创建数据库 create database school; use school; -- 建表 -- 学生表:学生编号,学生姓名, 出生年月,学生性别 create table Student(s_id varchar(1 ...
分类:
数据库 时间:
2020-07-12 16:49:03
阅读次数:
67
1.性能下降的表现 执行时间长 2.性能下降的原因 查询语句写的不好 建立的索引失败 关联join太多 服务器调优和配置参数导致 3.做法 写出高质量的sql 保证索引不失效 ...
分类:
数据库 时间:
2020-07-12 12:20:22
阅读次数:
58