CSS样例:英文首字母特大写

This is a CSS style test example. Feel free to download and use this sample code from zhaiduo.com. If any questions, welcome to contact me.


代码如下:

#box{
width: 200px;
margin-left: 100px;
padding: 20px;
}
p.fl:first-line {
font-size: 20px;
color: #000;
margin: 0;
padding: 0;
}
p.fl:first-letter {
font-size: 200px !important;
color: #ccc !important;
float: left !important;
margin: 0 -50px 0 -80px !important;
padding: 0 !important;
line-height: 150px !important;
}
< div id=”box” >
< p class=”fl” >This is a CSS style test example. Feel free to download and use this sample code from zhaiduo.com. If any questions, welcome to contact me.< /p >
< /div >