CSS

.用于类  #用于ID

DIV:

border-radius:5px;

font-weight: bold;

P:

display: inline;

position: relative;

margin-left: 138px;

pseudo-class selector  <a></a>

a:hover {
 color: #cc0000;
 font-weight: bold;
 text-decoration: none;
}

a:link: An unvisited link.
a:visited: A visited link.
a:hover: A link you're hovering your mouse ove

positioning property

display: inline-block;  //block inline none

margin :上 右 下 左;  auto

margin: 20px 50px 10px px;

padding: value value value value;

border: 1px dashed black;

float:left;

clear:both; //left right

原文地址:https://www.cnblogs.com/linuxroot/p/3119405.html