OnlineRobotFrontEnd

技术博客


  • 首页

  • 标签

  • 分类

  • 归档

  • 搜索

css属性:颜色(color)与字体(font)

发表于 2018-08-21 | 更新于 2020-08-05 | 分类于 css basic

颜色 color

检索或设置对象的文本颜色。无默认值
默认值:由user agent决定

适用于:所有元素

继承性:有

动画性:是

计算值:指定值

取值: color:指定颜色

阅读全文 »

css属性:文本(Text)

发表于 2018-08-16 | 更新于 2020-08-05 | 分类于 css basic

参考链接:

  • css.doyoe.com
  • css2.1中文版
  • MDN

一.text-transform

text-transform 属性指定如何将元素的文本进行大小写变形。它可以用于使文本显示为全大写或全小写,也可单独对每一个单词进行操作。

阅读全文 »

line-height 爱我你怕了吗

发表于 2018-08-09 | 更新于 2020-08-05 | 分类于 css basic

line-height 爱我你怕了吗

阅读全文 »

css属性:背景与边框

发表于 2018-08-02 | 更新于 2020-08-05 | 分类于 css basic

边框

border

定义元素边框的外观特性

1
border:<line-width> || <line-style> || <color>

阅读全文 »

css属性:表格table

发表于 2018-08-01 | 更新于 2020-08-05 | 分类于 css basic

table-layout:

  • fixed : 固定布局
  • auto: 自动算法

border-collapse:

  • collapse: 相邻边框合并
  • separate: 边框独立

border-spacing:

  • 只在boder-collapse为 separate的情况下有效果
  • 复合属性,横向相邻和纵向相邻分开设置:border-spacing:10px 20px
  • IE6/7无效,兼容方式<table border="1" cellspacing="20">

caption-side:

  • caption的位置
  • 取值 top bottom
  • left right (只有Firefox支持)

empty-cells:

  • 取值 hide show
  • 单元格没值时,隐藏边框
  • 只在boder-collapse为 separate的情况下有效果

css属性:尺寸与补白

发表于 2018-08-01 | 更新于 2020-08-05 | 分类于 css basic

尺寸

Dimension用于控制元素的高度和宽度,包含属性有width、height、min-width、max-height、max-width、max-height;

阅读全文 »

css属性:布局layout

发表于 2018-07-31 | 更新于 2020-08-05 | 分类于 css basic

display

阅读全文 »

css属性:position

发表于 2018-07-25 | 更新于 2020-08-05 | 分类于 css basic

postion用于指定一个元素在文档中的定位方式

使用语法

支持属性static | relative | absolute | fixed | sticky,其中默认值为static
注意,position 属性只针对display不为table-column-group | table-column的元素生效

阅读全文 »

css属性:列表list

发表于 2018-07-25 | 更新于 2020-08-05 | 分类于 css basic

列表 list

给 li 或者 display:list-item 的元素设置样式

阅读全文 »
123
OnlineRobotFrontEnd

OnlineRobotFrontEnd

京东数科在线机器人前端团队

29 日志
11 分类
14 标签
© 2020 OnlineRobotFrontEnd
由 Hexo 强力驱动 v3.7.1
|
主题 — NexT.Gemini v6.3.0