垂直居中: 块级元素 1.使用position设置定位方式后进行元素的偏移 2.利用CSS3的弹性布局(flex) 内联元素 使用CSS3 flex布局 水平居中: 块级元素 1.直接设置margin 2.使用position设置定位方式后进行元素的偏移(类似于垂直居中相应的方法),先设置left: ...
分类:
其他好文 时间:
2020-05-23 00:36:08
阅读次数:
49
今天在写sql语句的时候遇到了join on 这个东西表示的是外连接还是内连接呢?想要验证其实并不难 查询出来的数据量 --129 SELECT count(1) FROM t_budget a left JOIN t_budget_item b on a.budget_id =b.budget_i ...
分类:
数据库 时间:
2020-05-23 00:27:08
阅读次数:
114
注意给父级加上 (1)横向滚动 left:0; right:0; 然后想要横向滚动的话 overflow-x:scroll; overflow-y:hidden; (2)竖直方向滚动 top:0; bottom:0; position:fixed; overflow-y:scroll; overfl ...
分类:
其他好文 时间:
2020-05-22 19:03:10
阅读次数:
50
1.三种定位方式: 相对定位relative:相对于自身的位置进行偏移,postion需要搭配left/right/top/bottom postion:relative; left:10px; bottom:10px; 绝对定位position:相对于有position属性的父元素定位,如果父元素 ...
分类:
编程语言 时间:
2020-05-22 18:56:36
阅读次数:
67
1.三种定位方式: 相对定位relative:相对于自身的位置进行偏移,postion需要搭配left/right/top/bottom postion:relative; left:10px; bottom:10px; 绝对定位position:相对于有position属性的父元素定位,如果父元素 ...
分类:
其他好文 时间:
2020-05-22 18:54:50
阅读次数:
45
一、问题 §. vertical-align middle 不生效的几种解决方式,图片居中几种方案 1.在父元素中增加display:table-cell,vertical-align 写在在父元素中 .btn{ display: table-cell; width: 200px; height: ...
分类:
Web程序 时间:
2020-05-22 13:16:15
阅读次数:
56
Position定位 中`position position static relative absolute fixed sticky inherit`。 static 属性是 元素的默认值,即没有定位,遵循正常的文档流对象,对于 、`bottom left right z index`属性的设置 ...
分类:
其他好文 时间:
2020-05-22 12:49:01
阅读次数:
57
[TOC] 计数 湖南师大附中课件总结 容斥 一般形式 $$ \begin{array}{c} \left|S_{1} \cup S_{2} \cdots \cup S_{n}\right|=\sum_{i}\left|S_{i}\right| \sum_{i 有一个 $N$ 个点的无向完全图和 $ ...
分类:
其他好文 时间:
2020-05-21 10:34:17
阅读次数:
67
//merge sort //合并有序序列 //没有改变相等元素的前后位置 #include<iostream> #include<vector> using namespace std; void merge(vector<int>& v, int left, int right, int rig ...
分类:
编程语言 时间:
2020-05-20 20:06:28
阅读次数:
71
关于这个前端,我觉得css是最难搞的,方法很多,,, 设置border,1px,solid,black padding也很重要,设置标签里文字,的位置,text align,text decoration ...
分类:
其他好文 时间:
2020-05-20 18:54:26
阅读次数:
48