/* 样式的书写规范
选择器{
css属性名:css属性值;
。。
}
*/
/*通配符选择器*/
*{
margin: 0;/*外边距*/
padding: 0;/*内边距*/
font-family: 宋体;
font-size: 16px;
}
p{
color: rgb(23, 62, 97);
border: blueviolet;
}
/* 类选择器*/
.big{
font-size: 30px;
}
/*id选择器,id名自己定义*/
#test{
color: black;
font-size: 30px;
}
/*后代选择器*/
p a{
color: blueviolet;
font-size: 24px;
}
/*伪类选择器*/
a{
color: #666;
text-decoration: none;
}
a:hover{
color: red;
text-decoration: underline;
font-size: 20px;
font-family: 'Times New Roman', Times, serif;
}