基础知识

font-weight: 100; /* Thin */
font-weight: 200; /* Extra Light */
font-weight: 300; /* Light */
font-weight: 400; /* 等同于:normal; */
font-weight: 500; /* Medium */
font-weight: 600; /* Semi Bold */
font-weight: 700; /* 等同于:bold; */
font-weight: 800; /* Extra Bold */
font-weight: 900; /* Ultra Bold */

#文本阴影(text-shadow)

text-shadow: h-shadow v-shadow blur color;
  • h-shadow 必需。水平阴影的位置。允许负值。
  • v-shadow 必需。垂直阴影的位置。允许负值。
  • blur 可选。模糊的距离。
  • color 可选。阴影的颜色。

只有 x 和 y 参数值是必须定义的。blur 的缺省值为 0,而 color 缺省值为文本的颜色。

h1{ text-shadow: 0 2px 5px rgba(0,0,0,0.5);}

Hello World

posted @ 2019-06-26 11:54  小锐是梦想家  阅读(96)  评论(0编辑  收藏  举报