<link rel="stylesheet" type="text/css" href="Demo01.css">
<style>
html{
background-color: darkgray;
}
ul{
font-size: 20px;
}
/*第一个单词进行改变样式 */
ul::first-letter{
color: pink;
font-size: 50px;
}
/* 第一行进行改变样式 */
ul::first-line{
background-color: powderblue;
}
/* ul父标签进行改变,如果不变所有子标签随着父标签进行改变 */
ul::selection{
background-color: antiquewhite;
}
/* 所有li子标签进行改变 */
ul >li::selection{
background-color:yellow;
}
/* 在div字符的第一个字的前面 /
div::before{
content:“隔壁的”;
color: brown;
}
/ 和最后一个字的后面增加字符 */
div::after{
content:“吴同学”;
color: aliceblue;
}
</style>
亲爱的
- i Love there things in this world. Sun, Moon and You.
- Sun for morning, Moon fornight, and You forever.
- Thousand of time I have thought of you .
- My heart is going high intothe air and flying with my blessing towards you.
- I don’t care loneliness.
- I am satisfied when you are happy and I am happy when Ithink of you!
</ul>