zoukankan      html  css  js  c++  java
  • CSS网页美化设计属性

    一、背景与前景

    1.background属性

    background-color--背景颜色

    background-image:url() --背景图片路径要写在url()中.

    background-attachment:fixed--背景图固定,字动图不动.scroll -- 背景与字一起滚动,默认.

    background-repeat:repeat--平铺 no-repeat--不平铺 repeat-x--横向平铺 repeat-y--纵向平铺.

    background-position:top--顶端 right--右边距  bottom,left,像素

    font-family:字体名称(微软雅黑,宋体)

    font-size:像素(12px,14px,18px),2.5em,200%

    font-weight:是否加粗。bold,normal

    font-style:是否倾斜。italic,normal

    color:

    text-decoration:none,underline,overline,line-through

    text-align:left,center,right

    vertical-align:top,middle,bottom

    text-indent:首行缩进量

    line-height:行高 1.5-2倍的字体大小

    二、边界与边框

    1.border类:

    2.margin类:

    3.padding类:

    三、列表与方块

    1.width,height,(left,top,right,bottom)只有在绝对定位时可用

    2.list-style-type,list-style-image,list-style-position

    四、格式与布局

    1.position:fixed,absolute,relative

    2.z-index:

    3.overflow:超出范围;scroll-出滚动条;hidden-隐藏

    4.float:浮动方向。

    5.clear:both;

  • 相关阅读:
    CentOS 7 安装 MariaDB
    yum工具使用 -- 配置自定义yum源
    CentOS 7 安装 redis
    CentOS 7 安装Python3 + 虚拟环境 + django
    Linux 安装 Python3.6.5
    CentOS 7 安装Python3 虚拟环境
    oracle数据库分页原理
    POI工具类
    IoDH单例模式
    为什么使用单例模式【转】
  • 原文地址:https://www.cnblogs.com/DORCASQING/p/3977499.html
Copyright © 2011-2022 走看看