美文网首页
CSS知识梳理

CSS知识梳理

作者: Miridescent | 来源:发表于2019-07-10 16:20 被阅读0次

    1、盒子模型

    位置 属性
    外边距 marginmargin-topmargin-rightmargin-bottommargin-left
    边框 borderborder-styleborder-widthborder-color
    内边距 paddingpadding-toppadding-rightpadding-bottompadding-left
    元素 widthheight

    2.定位

    属性
    position absolutefixedrelativestaticinherit
    top
    right
    bottom
    left
    overfiow visiblehiddenscrollautoinherit
    float leftrightnoneinherit
    clear leftrightbothnoneinherit

    3、其他样式

    名称 作用
    background 背景声明
    background-color 背景色
    background-image 背景图片
    background-position 背景定位
    text-indent 文本缩进
    text-align 文本对其
    word-spacing 字间距
    text-transform 字符转换
    direction 文本方向
    font 字体
    font-family 字体
    font-style 字体倾斜
    font-weight 字体加粗
    font-size 字体大小
    text-decoration 去掉连接下划线
    list-style 列表
    list-style-type 设置列表项标志的类型

    相关文章

      网友评论

          本文标题:CSS知识梳理

          本文链接:https://www.haomeiwen.com/subject/lvehkctx.html