一、成果展示
二、实现
代码如下(示例):
html
<TD class="TableTwice">
<span>年度</span>
<br>
<span>类别</span>
</TD>
css
<style type="text/css">
.TableTwice{
background:#fcfcfc;
}
.TableTwice::before{
content: '';
position: absolute;
width: 1px;
height: 216px;
background-color: rgb(192, 192, 192);
display: block;
transform: rotate(-80deg);
transform-origin: top;
overflow: hidden;
}
.TableTwice span:first-child{
padding-left: 100px;
}
.TableTwice span:last-child{
padding-right: 100px;
}
</style>