zoukankan      html  css  js  c++  java
  • 样式表 巩固

     width 宽度 , height高度,

    一.背景

    background —color 背景色            background—image背景图片

    background-repeat背景图的平铺方式           background-position背景图位置

    background-attachment设置背景图片是否滚动         background-size背景图的大小 200px 200px

     二.字体

    font-family字体样式      font-size字体大小  

     三.对齐方式

    font-size水平对齐方式             vertical-align垂直对齐方式,配合行高使用             line-height行高         text-indent缩进 单位像素

    margin外边距  上右下左         padding 内边距 上右下左   

     四.列表方块

    list-style none将列表前面的序号去掉               list-style-image可以将前面的序号变为图片  

     五. position

    fixed固定 相对于浏览器边框位置固定                 absolute绝对位置    相对于父级元素(浏览器,绝对定位的上级)     relative相对位置  相对于自身应该出现的位置  

    六.位置

    top 距离上边距离  right 距离右边距离  bottm 距离下边距离   left距离左边距离

    七.流

    float-left 向左流  float-right 向右流

    z-index分层  值越大越靠上

  • 相关阅读:
    008Spring & JPA & Hibernate & MySQL
    007Spring Security
    006Spring面向切面
    005运行时值注入
    004bean作用域
    003自动装配歧义性解决
    002Conditional条件化创建bean
    001profile条件化创建bean
    007API网关服务Zuul
    Sqlserver2008R2 如何使用bak备份文件还原数据库以及对应的失败解决方案
  • 原文地址:https://www.cnblogs.com/Liangbingbing/p/6611923.html
Copyright © 2011-2022 走看看