<分区>
我正在尝试在 HTML 中设置图像并希望文本在其上运行。但是当我使用以下代码时,文本将在图像下方运行。
HTML
<div id="titel">
<img src="images/titel.jpg" alt="titel">
<h3>Titel</h3>
</div>
CSS
#titel
{
float:left;
width:220px;
height:100px;
margin:0px 5px 5px;
}
h2
{
position:absolute;
}