1:给父元素添加text-align:center (左右居中)2:给当前元素添加 display:inline-block; vertical-align:middle;3:在当前元素后面(不要回车),添加一个空的span给span设置样式: display:inline-block; width ...
分类:
其他好文 时间:
2020-04-21 13:32:37
阅读次数:
69
{ title: '应收账款', dataIndex: 'ysk', key: 'ysk', align: 'center', width: '100px', className: `${styles.columnTwo}`, // 添加这个 } ...
分类:
其他好文 时间:
2020-04-20 15:59:50
阅读次数:
316
我提交radio选项是根据button提交申请的。 radio是这么写的: <div class="mt-20 skin-minimal" style="text-align: center;"> <div class="radio-box"> <input type="radio" id="rad ...
分类:
其他好文 时间:
2020-04-17 20:15:24
阅读次数:
132
有时候接口返回的数据是字典码,我们需要进行字典匹配,这时候就要自定义一个方法 html代码 <div> <el-table :data="tableData" border height="300"> <el-table-column type="index" label="序号" align="c ...
分类:
其他好文 时间:
2020-04-13 21:11:32
阅读次数:
76
菜鸟教程地址:https://www.runoob.com/w3cnote/flex-grammar.html flex-direction flex-wrap flex-flow justify-content align-items align-content flex-direction属性决 ...
分类:
其他好文 时间:
2020-04-13 16:43:59
阅读次数:
59
@{ Layout = "~/Views/_LayoutBase.cshtml"; <style> #demo3 select { width: 100%; } .datagrid-row { height: 100px; text-align: center; } .datagrid-cell-c ...
分类:
Web程序 时间:
2020-04-11 18:48:27
阅读次数:
86
1. 内容标题 h1-h6 属性:align="left/right/center"2. 段落标签 p 3. 水平分割线 hr4. 换行 br <!DOCTYPE html><!-- 此标签为文档声明用于告诉浏览器使用h5的标准解析页面 --> <html><!-- 根标签除了文档声明所有内容都在h ...
分类:
其他好文 时间:
2020-04-10 17:11:01
阅读次数:
61
1. css 2.x 文字换行 /*强制不换行*/ white-space:nowrap; /*自动换行*/ word-wrap: break-word; word-break: normal; /*强制英文单词断行*/ word-break:break-all; 两端对齐 text-align:j ...
分类:
Web程序 时间:
2020-04-08 22:49:04
阅读次数:
111
a{ display: inline-block; width: 10px;height:5px; background: red;line-height: 0;font-size:0;vertical-align: middle;-webkit-transform: rotate(45deg);} ...
分类:
Web程序 时间:
2020-04-06 23:36:39
阅读次数:
167
flex布局 用以代替浮动的布局手段; 必须先把一个元素设置为弹性容器;//display:flex; 一个元素可以同时是弹性容器和弹性元素; 设为flex布局以后,子元素的float、clear和vertical-align属性将失效。 主轴:弹性元素排列的方向; 弹性容器的属性 1、flex-d ...
分类:
其他好文 时间:
2020-04-05 23:54:02
阅读次数:
110