某些頁面包含page-header
元素/類。如何在背景圖像上應用圖像?
。第-頭類看起來像這樣:
.page-header {
background: url(/public/images/page-header.png) no-repeat;
width: 1000px;
height: 190px;
color: white;
font-size: 17px;
margin: 0;
}
例如:
的index.html
<div class="page-header">
<h1>Homepage</h1>
</div>
about.html
<div class="page-header">
<h1>About</h1>
</div>
我想使用css在page-header
的頂部添加小圖像,每個頁面都會有不同的圖像。如何做到這一點,我應該用span
與CSS?
這與SEO有什麼關係?它不是標誌圖像。 –
如果是橫幅圖像i ment。 –