字体样式
<style>
body{
font-family: "Arial Black",楷体;
color: #65a4ff;
}
h1{
font-size: 50px;
}
.p1{
font-weight: lighter;
}
</style>
文本样式
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
h1 {
color: rgba(0, 255, 255, 0.9);
text-align: center;
}
.p1 {
text-indent: 2em;
}
.p3 {
background: #2700ff;
height: 300px;
line-height: 300px;
}
.l1{
text-decoration: underline;
}
.l2{
text-decoration: line-through;
}
.l3{
text-decoration: overline;
}
a{
text-decoration: none;
}
</style>
</head>
<body>
<a href="">123</a>
<p class="l1">123123132</p>
<p class="l2">123123132</p>
<p class="l3">123123132</p>
<h1>1111</h1>
<p class="p1">2222222222222222222222</p>
<p>3333333333333333333333</p>
<p class="p3">esfhhkhsbekfuhsekdufsdhkfe</p>
</body>
</html>
超链接伪类
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
a{
text-decoration: none;
color: #000000;
}
a:hover{
color: orange;
font-size: 50px;
}
a:active{
color: #40ff3f;
}
a:link{
}
a:visited{
color: red;
}
#price{
text-shadow: yellow 10px 10px 2px;
}
</style>
</head>
<body>
<a href="#">
<img src="images/a.PNG">
</a>
<p>
<a href="#">123</a>
</p>
<p>
<a href="">456</a>
</p>
<p id="price">
$99
</p>
</body>
</html>
列表样式
/*ul li*/
/*
list-style"
none 去掉原点
circle 空心圆
decimal 数字
square 正方形
*/
ul{
background: #a0a0a0;
}
ul li{
height: 30px;
list-style: none;
text-indent: 1em;
}
渐变
<style>
body{
background-image: linear-gradient(19deg,#21D4FD 0%,#B721FF 100%);
}
</style>