🥷 更新文章内的表格样式
This commit is contained in:
parent
66b855eeea
commit
4c695c652e
|
@ -159,7 +159,6 @@
|
||||||
}
|
}
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 0;
|
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
|
@ -168,8 +167,10 @@
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
margin: 20px 0 15px;
|
margin: 20px 0 15px;
|
||||||
|
border: 1px solid rgba(153,169,191,.1);
|
||||||
|
overflow: hidden;
|
||||||
td:hover, tr:hover {
|
td:hover, tr:hover {
|
||||||
background: #e8e9ea;
|
background: rgba(153,169,191,.1);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
tr:first-child th:first-child {
|
tr:first-child th:first-child {
|
||||||
|
@ -184,6 +185,16 @@
|
||||||
tr:last-child td:last-child {
|
tr:last-child td:last-child {
|
||||||
border-bottom-right-radius: 3px;
|
border-bottom-right-radius: 3px;
|
||||||
}
|
}
|
||||||
|
td{
|
||||||
|
border-bottom: 1px solid rgba(153,169,191,.1);
|
||||||
|
border-right: 1px solid rgba(153,169,191,.1);
|
||||||
|
}
|
||||||
|
tr:first-child td{
|
||||||
|
border-top: 1px solid rgba(153,169,191,.1);
|
||||||
|
}
|
||||||
|
tr td:first-child{
|
||||||
|
border-left: 1px solid rgba(153,169,191,.1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
thead {
|
thead {
|
||||||
text-indent: 1em;
|
text-indent: 1em;
|
||||||
|
@ -194,18 +205,23 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
background: #73b1e0;
|
background: rgba(153,169,191,.1);
|
||||||
font-weight: 800;
|
font-weight: 400;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
line-height: 35px;
|
color: #4c4948;
|
||||||
color: #fff;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tbody{
|
tbody{
|
||||||
tr {
|
tr {
|
||||||
line-height: 2.5em;
|
line-height: 2.5em;
|
||||||
}
|
}
|
||||||
|
td{
|
||||||
|
color: #333;
|
||||||
|
font-weight: 400;
|
||||||
|
padding: 0 1em;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue