Css的一些示例
98 words
One minute
表格中显示 a链接 自动换行
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| table, table tr th, table tr td {
border: 1px solid #0094ff;
}
table {
width: 100%;
min-height: 25px;
line-height: 25px;
text-align: center;
border-collapse: collapse;
margin-bottom: 20px;
}
table td {
word-wrap: break-word;
word-break: break-all;
}
table a {
display: inline-block;
word-wrap:break-word;
overflow: hidden;
text-overflow: ellipsis;
}
|
垂直水平居中
1
2
3
| display: flex;
justify-content: ceter;
align-items: center;
|