文本样式:
- 颜色:
- 文本对齐方式:
- 首行缩进:
- 行高:
- 装饰:
- 文本图片水平对齐:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>文本样式、</title>
<!--
颜色:RBG:0~F
RBGA:0~1:透明度
text-align:排版居中
text-indent:段落首行缩进em
height: 150px;=line-height: 150px;可以实现文本上下居中
text-decoration: underline;下划线
text-decoration: line-through;中划线
text-decoration: overline;上划线
-->
<style>
h2{
color: rgba(0,255,255,0.9);
text-align: center;
}
.p1{
text-indent: 1px;
}
.p3{
background: #2700ff;
height: 150px;
line-height: 150px;
}
.k1{
text-decoration: underline;
}
.k2{
text-decoration: line-through;
}
.k3{
text-decoration: overline;
}
img,span{
vertical-align: middle;
}
</style>
</head>
<body>
<h2>功夫熊猫</h2>
<p class="k1">111111111</p>
<p class="k2">111111111</p>
<p class="k3">111111111</p>
<p class="p1">
1、所爱如山海,烟火伴长明《穿过寒冬拥抱你》的故事发生在2021年农历春节期间的武汉,在那个特殊时期,黄渤饰演的快递员阿勇组织了志愿者团队为医护送物资,透过这条故事线,串起了一众市民守望相助的温暖故事。贾玲饰演的外卖骑手武哥与朱一龙饰演的钢琴老师叶子扬演绎了笑点和泪点共存的故事,徐帆和高亚麟饰演的中年夫妇在相互笑骂中迎来人生的剧变与惊喜,吴彦姝。
</p>
<p>
2、既要今朝醉,也要万年长。
</p>
<p>
3、新年新气象,世界无冠状。
</p>
<p class="p3">
There are some people who think love is sex and marriage and six o’clock-kisses and children, and perhaps it is, Miss Lester.
</p>
<!--这时的图片和文字没有对齐,需要参照物来对齐,img与span对齐-->
<p class="qq">
<img src="images/1.jpg" alt="">
<span>可爱的小猪佩奇</span>
</p>
</body>
</html>