我的文本从 div 顶部对齐有问题。
这是HTML:
<div id="services">
<div class="langelis">
<div class="icon">
<img src="images/knyg.jpg" alt="knyga" />
</div>
<div class="txt">
<h1>Lorem Ipsum</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s..</p>
</div>
</div>
<div class="clear"></div>
</div>
这是CSS:
#content #main #services {
width: 1010px;
height: auto;
min-height: 320px;
margin: 50px auto;
}
#content #main #services .langelis {
width: 510px;
height: auto;
min-height: 140px;
position: relative;
border: 1px #000 solid;
}
#content #main #services .langelis .icon {
width: 65px;
min-height: 140px;
height: auto;
float: left;
border: 1px #000 solid;
}
#content #main #services .langelis .txt {
width: 440px;
height: auto;
float: left;
border: 1px #000 solid;
}
如何制作文字
Lorem Ipsum Lorem Ipsum 只是印刷和排版行业的虚拟文本。自 1500 年代以来,Lorem Ipsum 一直是业界标准的虚拟文本。
从 .txt div 的中心对齐?谢谢你的帮助