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;
}