console
<h1>helloworld</h1>
<p>我是一个p标签</p>
<span>我是一个span标签</span>
<article class="article">这是一个段落,希望可以实现首行缩进的功能,This is a paragraph example, i hope it can run the function like text-indent and line-height</article>
<p class="word-spacing">测试文字间距word-spacing function testing</p>
<p class="white-space">This is testing text.This is testing text.This is testing text.This is testing text.This is testing text.</p>
<pre>使用tab键 tab-size 12</pre>
<pre id="word-wrap">Hi,guy,today I wanna introduce the website of Baidu(https://www.baidu.com), which is one of the most famous search engine in China.</pre>
<p class="text-overflow">This is a testing text.This is a testing text.This is a testing text.</p>
h1{
background-color: #f06;
background: linear-gradient(45deg,#f06,yellow);
font-size: 50px;
min-height: 100%;
}
p{
color: orange;
background:linear-gradient(50deg,grey,green);
}
span{
font-style: italic;
color:red;
background:linear-gradient(50deg,aquamarine,greenyellow);
font-family: 'Courier New', Courier, monospace;
text-align:justify;
text-indent:32px;
}
.article{
background: linear-gradient(50deg,orange,pink);
color:ghostwhite;
text-indent:32px;
line-height: 40px;
letter-spacing:10px;
}
.word-spacing{
word-spacing: 25px;
}
.white-space{
font-size: 20px;
white-space: nowrap;
text-transform:capitalize;
text-shadow:0px 0px 10px red;
text-decoration: overline un
derline line-through;
}
pre{
tab-size: 18;
}
#word-wrap{
word-wrap: break-word;
}
.text-overflow{
width:150px;
border:1px solid blue;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}