font-size,设置文本字体大小,如 div {font-size: 30px; },像素(pixels)通常作为设定绝对大小的单位,em则作为设定相对大小的单位,浏览器默认的文本字体大小是16px=1em font-family,定义文本的字体类别,如 h1 {font-family: 宋体, serif;},为了防止用户代理上没有安装设定字体,可以通过使用特定字体名 + serif通...
1.4, font-family:(字体类型) font-family:“字体1”, "字体2"; 如果后面有多个参数以逗号隔开,则后面的选项是前面的备选方案,即第一个字体不存在的时候选择第二个,如果第二个也不存在,依次选择后面的字体 "宋体"; 常用字体: (font-family):Courier New, Courier, monospace, Times New Roman, Times, ser...
@font-face是一个特殊规则 其中可以设置font-family(表明你要为设定font起的名字)、src(font来自于哪)、font-style(是否斜体)、font-weight(字体粗细) 备注:可能会遇到跨域问题 font 是一个复合属性,顺序为: font-style→font-variant→font-weight→font-size/line-height(必要)→font-family(必要) 十二、表格 ...
对于行内元素,可继承的属性有:letter-spacing、word-spacing、white-space、line-height、color、font、 font-family、font-size、font-style、font-variant、font-weight、text- decoration、text-transform、direction。 对于块状元素,可继承的属性有:text-indent和text-align。 列表元素可继承:list-style、list-style-...
属性:font-family 属性值 中文、英文 浏览器中默认的中文是微软雅黑,win系统默认的字体是宋体/新宋体,英文是arial 中文:属性值必须要加引号 英文:属性值只有的一个情况下不用加引号,有多个属性值的时候需要加引号 3. 加粗属性的使用 属性:font-weight
list-style、list-style-type、list-style-position、list-style-image。 无继承性的属性 生成内容属性 display。 文本属性 vertical-align、text-decoration、text-shadow、white-space、unicode-bidi。 盒子模型的属性 width、height、margin、margin-top、margin-right、margin-bottom、margin-left、border、border-style...
font-size 规定文本的字体尺寸 1 font-style 规定文本的字体样式 1 font-variant 规定文本的字体样式 1 font-weight 规定字体的粗细 1 @font-face 一个规则,允许网站下载并使用其他超过"Web- safe"字体的字体 3 font-size-adjust 为元素规定 aspect 值 3 font-stretch 收缩或拉伸当前的字体系列 3内容...
1. list-style-type无序列表样式 值 描述 none 无标记 disc 默认值,标记为实心圆 circle 将标记设置为空心圆 square 将标记设置为实心方块 decimal 将标记设置为数字 decimal-leading-zero 将标记设置为以 0 开头的数字标记,例如 01、02、03 lower-roman 将标记设置为小写罗马数字,例如 i、ii、iii、iv、v up...
font-size字体大小 font—style字体样式(斜体/偏斜体) line-height行高 text- decoration下划线/上划线 font—weight字体粗细 font—variant变体 text-transform大小写 color字体颜色 二、背景 background-color背景颜色 background-image背景图片 background-repeat背景重复方式 background-attachment背景滚动或固定 background...
CSS 之列表(List) 一、属性 二、示例 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>列表</title> <style> h1 { font-size: 16px; font-family: Arial; } .disc { list-style-type: disc; } .circle {