我在創建的導航菜單欄中設置了我的社交媒體圖標的格式問題。我發現的是,因爲我已將標題置於導航菜單欄中,它覆蓋了菜單欄的整個中心,並且不允許將Facebook圖標或Instagram圖標放置並置於欄內。導航菜單欄中圖標位置及其標題的位置問題
<head>
<meta charset="UTF-8">
<link rel = "icon" href="LogoBlack.PNG" type="image/SVG">
<style>
body {margin:0;}
.Header {
position: fixed;
width: 100%;
background-color: #000000;
height: 70px;
}
</style>
</head>
<body>
<div class="Header" id="myHeader">
<a class = "headerLogo">
<a href="file:///C:/Noah's%20stuff/Home.html" ><h1 style="color:white; font-family: Verdana; font-style: italic; font-size: x-large;
text-align: center;">Header</h1></a>
<style>
a{text-decoration: none}
</style>
</a>
<a class = "Facebook" style = "padding-left: 1000px;">
<img src = "facebook-3-xxl.png">
</a>
<a class = "Instagram" style = "padding-left: 30px">
<img src = "instagram-32.png">
</a>
</div>
</body>
<body>
這裏是我更新的代碼,這仍然是對付圖標如果你想圖標爲中心,而他們的父母使用text-align:center;
不對齊到菜單欄
<meta charset="UTF-8">
<link rel = "icon" href="LogoBlack.PNG" type="image/SVG">
<style>
body {margin:0;}
.Header {
position: fixed;
width: 100%;
background-color: #000000;
text-align: center;
margin-bottom: 50%;
}
</style>
</head>
<body>
<div class="Header" id="myHeader">
<a class = "headerLogo">
<a href="file:///C:/Noah's%20stuff/Home.html" ><h1 style="color:white; font-family: Verdana; font-style: italic; font-size: x-large;
text-align: center;">Header</h1></a>
<style>
a{text-decoration: none}
</style>
</a>
<a class = "Facebook" style = "margin-left: 50%; margin-bottom: 500px">
<img src = "facebook-3-xxl.png">
</a>
<a class = "Instagram" style = "margin-left: 2%">
<img src = "instagram-32.png">
</a>
</div>
</body>
<body>
什麼我發現是因爲它是一個頭,它佔用的地方是對準了整個空間,所以我不知道該怎麼做。 –