来源:MyExcel
浏览 1079
扫码
分享
2019-08-13 07:42:45
宽度(widht)
CSS | Value | Example |
---|
width | 数值,如15px | style="width: 15px" |
背景色(background)
CSS | Value | Example |
---|
background-color | 十六进制:#FFFFFF、RGB:rgb(0,255,255)、常用背景色名称:green,推荐使用十六进制 | style="background-color:#ABFF00" |
边框(border)
CSS | Value | Example |
---|
border-top-style | thin、dashed、medium、dotted、thick、double、hair、medium_dashed、dash_dot | style="border-top-style:thin" |
border-right-style | thin、dashed、medium、dotted、thick、double、hair、medium_dashed、dash_dot | style="border-top-style:thin" |
border-bottom-style | thin、dashed、medium、dotted、thick、double、hair、medium_dashed、dash_dot | style="border-top-style:thin" |
border-left-style | thin、dashed、medium、dotted、thick、double、hair、medium_dashed、dash_dot | style="border-top-style:thin" |
字体(font)
CSS | Value | Example |
---|
color | green | style="color:green;" |
font-size | 数值:14px(只会截取数值) | style="font-size:14px" |
font-family | Times New Roman(不支持备选字体) | style="font-family:Times New Roman" |
font-style | italic | style="font-style:italic" |
font-weight | bold | style="font-weight:bold" |
text-decoration | line-through、underline | style="text-decoration: underline" |
对齐方式(align)
CSS | Value | Example |
---|
text-align | general,left,center,right,fill,justify,center_selection,distributed | style="text-align:center" |
vertical-align | top,center,bottom,justify,distributed | style="vertical-align:center" |
隐藏(visibility)
CSS | Value | Example |
---|
visibility | hidden:隐藏,目前仅设置在tr上生效 | < tr style="visibility: hidden" > |
自动换行(word-break)
CSS | Value | Example |
---|
word-break | break-all:自动换行 | < tr style="word-break: break-all" >、< td style="word-break: break-all" > |