0
嗨,大家好我是新來的HTML和我正在爲我的課的網站項目工作。我的問題是每當我放大我的圖像向左或向右移動。我怎樣才能讓它留下來。謝謝!放大時圖像移動
我的繼承人HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Ghost - Home</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Cinzel" rel="stylesheet">
</head>
<!-- Ghost Logo -->
<center><img src="images/gh_logo.png" alt="GH Logo" style="width:138px;height:198px;"></center>
<!-- End Ghost Logo -->
<img src="images/band_photo2.png" class="band-img" alt="image"/>
<div id="container">
CSS
body {
background-image: url(../images/topback_gh2.png);
background-position: center top;
background-repeat: no-repeat;
z-index: 0;
}
.band-img {
background-repeat: no-repeat;
position: absolute;
margin-top: -50px;
margin-left: 439px;
}