怪物猎人伤害

CSS

文本

  • Text
属性 描述
color 设置文本颜色
direction 设置文本方向。
letter-spacing 设置字符间距
line-height 设置行高
text-align 对齐元素中的文本
text-decoration 向文本添加修饰
text-indent 缩进元素中文本的首行
text-shadow 设置文本阴影
text-transform 控制元素中的字母
unicode-bidi 设置或返回文本是否被重写
vertical-align 设置元素的垂直对齐
white-space 设置元素中空白的处理方式
word-spacing 设置字间距
  • Fonst
Property 描述
font 在一个声明中设置所有的字体属性
font-family 指定文本的字体系列
font-size 指定文本的字体大小
font-style 指定文本的字体样式
font-variant 以小型大写字体或者正常字体显示文本。
font-weight 指定字体的粗细。

链接

  • 声明
1
<a href="url" class="自定义类名">链接网址</a> 
属性 描述
link 正常,未访问过的链接.自定义类名:link{color:#000000;}
visited 用户已访问过的链接.自定义类名:visited{color:#00FF00;}
hover 当用户鼠标放在链接上时.自定义类名:hover{color:#FF00FF;}
active 链接被点击的那一刻.自定义类名:active{color:#0000FF;}
  • 修饰
1
2
3
4
a:link {text-decoration:none;}
a:visited {text-decoration:none;}
a:hover {text-decoration:underline;}
a:active {text-decoration:underline;}
  • 背景颜色
1
2
3
4
a:link {background-color:#B2FF99;}
a:visited {background-color:#FFFF85;}
a:hover {background-color:#FF704D;}
a:active {background-color:#FF704D;}

列表

1
2
3
4
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
标签 描述
    定义有序列表
      定义无序列表
    • 定义列表项
      定义列表
      自定义列表项目
      定义自定列表项的描述

      盒子

      1
      2
      3
      4
      5
      6
      div {
      width: 300px;
      border: 25px solid green;(边框)
      padding: 25px;(内边距)
      margin: 25px;(内容)
      }

      https://github.com/Luojiangbao015/luojiangbao.github.io.git