• css中的属性


    一.字体

      1.字体类型  font-family  "Microsoft YaHei","微软雅黑"

      2.字体大小  font-size  默认16px

      3.字体字重  font-weight  normal bold

    二.文本

      1.文本颜色  color  yellow,blue...#ffffff gb gba

      2.文本对齐  text-align  left right center

      3.文本装饰  text-decoration  none(无格式) underline(下划线) overline(顶划线) line-through(中划线)

      4.文本缩进  text-indent  32px

    三.背景

      1.背景颜色  background-color  yellow,blue...#ffffff gb gba

      2.背景图片  background-image  url("路径")

      3.图片固定  background-attachment  fixed(固定图片) scroll(滚动图片)

      4.图片重复  background-repeat  no-repeat(不重复) repeat(重复)  repeat-x(x轴重复)  repeat-y(y轴重复)

      5.图片位置  background-position  left  right 或者 200px 100px  距离左200px上100px

      6.背景简写  background  以上所有值

    四.边框

      1.边框宽度  border-width  10px

      2.边框颜色  border-color  yellow,blue...#ffffff gb gba

      3.边框样式  border-style  none(无样式)  solid(实线)  dashed(矩形虚线)  dotted(点状虚线)

      4.边框半径  border-radius  5px

      5.边框简写  border  以上所有值

    五.css盒子模型

      margin和padding中给值顺序  顺时针给值,上下左右成双成对

      1.外边距  margin  标签与标签之间的距离,两个标签之间取最大值

      2.边框  border  标签的边框

      3.内边距  padding  标签内容和边框的距离

      4.内容  content  显示内容发的块大小

  • 相关阅读:
    WML1.1[zt]
    Collections sort() 合并排序
    PowerBuliderconnect the oracle database
    window.location.reload;刷新
    PowerBuliderWorking with validation rules
    PowerBulider create database
    Jstl Core标签
    页面验证
    El表达式详解
    servlet的生命周期
  • 原文地址:https://www.cnblogs.com/q767498226/p/10376676.html
Copyright © 2020-2023  润新知