-1
.header {
background-color: #694e4e;
height: 95px;
max-width: 100%;
max-height: 100%;
}
h1 {
font-size: 300%;
position: relative;
color: white;
text-align: right;
font-family: Verdana, Courier, monospace;
margin-top: 0px;
padding-top: 10px;
margin-right: 24px;
}
body {
margin: 0;
}
.douag {
margin: auto;
}
<div class="header">
<h1>hhhh </h1>
<img src="ss.png" class="douag" />
</div>
問題是ss.png位於頭外面的頁面頂部。我想要它。
你想對圖像做什麼? – ifconfig