一、水平居中 1. inline-block + text-align text-align(他会有继承) 作用在块级元素上,会让块级元素的inline-block子级 ,进行排列 <div class="parent"> <div class="child">demo</div></div> .p ...
分类:
其他好文 时间:
2019-08-18 15:29:44
阅读次数:
63
运行结果: test session starts platform win32 -- Python 3.7.4, pytest-5.1.0, py-1.8.0, pluggy-0.12.0rootdir: E:\py_pytest\interfacecollected 3 items test_f ...
分类:
其他好文 时间:
2019-08-17 19:59:10
阅读次数:
313
运行结果; test session starts platform win32 -- Python 3.7.4, pytest-5.1.0, py-1.8.0, pluggy-0.12.0rootdir: E:\py_pytest\interfacecollected 3 items test_f ...
分类:
其他好文 时间:
2019-08-17 19:56:16
阅读次数:
287
运行结果: test session starts platform win32 -- Python 3.7.4, pytest-5.1.0, py-1.8.0, pluggy-0.12.0rootdir: E:\py_pytest\interfacecollected 2 items test_f ...
分类:
其他好文 时间:
2019-08-17 19:54:11
阅读次数:
107
NumPy简单入门教程NumPy是Python中的一个运算速度非常快的一个数学库,它非常重视数组。它允许你在Python中进行向量和矩阵计算,并且由于许多底层函数实际上是用C编写的,因此你可以体验在原生Python中永远无法体验到的速度。NumPy绝对是科学Python成功的关键之一,如果你想要进入 ...
分类:
其他好文 时间:
2019-08-17 16:27:50
阅读次数:
107
10列表渲染 10.1用?v-for?把数组对应为元素 <ul id="example-1"> <li v-for="item in items"> {{ item.message }} </li> </ul> var example1 = new Vue({ el: '#example-1', d ...
分类:
Web程序 时间:
2019-08-17 15:14:57
阅读次数:
120
我看了书上例子,好象两者都可以实现treeview中的node 的构建。 addchild是给当前的node建一个子node,它比当前node要向右缩进几格add建立同级的node,不缩进 aNode :=TreeView1.Items.Add(Node, S)aNode 与 Node 是兄弟。bN ...
分类:
其他好文 时间:
2019-08-17 14:56:53
阅读次数:
93
flex-direction属性决定主轴的方向(即项目的排列方向)。 Flex-wrap:一行排不下的时候换行 justify-content属性定义了项目在主轴上的对齐方式。 align-items属性定义项目在交叉轴上如何对齐。 align-content属性定义了多根轴线的对齐方式。如果项目只 ...
分类:
其他好文 时间:
2019-08-17 12:28:56
阅读次数:
100
有 3 个字典方法,它们将返回类似列表的值,分别对应于字典的键、值和键-值对:keys()、values()和 items()。 有 3 个字典方法,它们将返回类似列表的值,分别对应于字典的键、值和键-值对:keys()、values()和 items()。 有 3 个字典方法,它们将返回类似列表的 ...
分类:
编程语言 时间:
2019-08-17 12:19:05
阅读次数:
77
父级给相对定位,子级给绝对定位,margin设置为auto,上下左右值设为0。 父级给相对定位,子级给绝对定位,设置left和top为50%,再向左和向上移动负的子级一半。 父级设置display:flex;justify-content: cneter;align-items: center; 父 ...
分类:
Web程序 时间:
2019-08-17 01:13:35
阅读次数:
176