CSS 20181016

字体

  • font-family 字体
  • font-style 普通/斜体(normal,italic,oblique)
  • font-size 大小
  • font-weight 粗细(normal,lighter,bold,900数字)

链接

  • a:link { 样式 } 正常链接
  • a:visited { 样式 } 已访问过的
  • a:hover { 样式 } 鼠标移到链接上时
  • a:active { 样式 } 点击链接的瞬间

列表

  • list-style-type 列表项的标记,通常有
    none:不使用项目符号
    disc:实心圆
    circle:空心圆
    square:实心方块
    demical:阿拉伯数字
    lower-alpha:小写英文字母
    upper-alpha:大写英文字母
    lower-roman:小写罗马数字
    upper-roman:大写罗马数字
  • list-style-image 图像作为列表项的标记
  • list-style-position 列表项标记的位置(inside,outside)

表格

  • 设置边框
table {
    border-collapse: collapse; //设置表格的边框是否被折叠成一个单一的边框或隔开
    width:100%; //表格宽度
    height:50px; //高度
}

table, td, th {
    border: 1px solid black;
}
td
{
text-align:right; //文字对齐
}
caption {caption-side:bottom;} //标题位置
posted @ 2018-10-16 20:14  羲兮cf  阅读(85)  评论(0编辑  收藏  举报