我的网站的徽标应位于页面的左上角。它是什么,但现在它有点太靠近左侧。我想将它向右移动18px。但我无法让它移动。我试图制作一个' .content img'我的徽标,但它没有用。有什么想法吗?
.content {
position: absolute;
width: 100%;
min-height: 100%;
z-index: 1000;
background-color: rgba(0,0,0,0.7);
}
.content h1 {
text-align: center;
font-size: 80px;
text-transform: uppercase;
font-weight: 300;
color: #fff;
padding-top: 4.5%;
margin-bottom: 10px;
}
.content p {
text-align: center;
font-size: 20px;
letter-spacing: 3px;
color: #aaa;
}
.contect img {
margin-left: 18px;
}

<!DOCTYPE html>
<html>
<head>
<script src = "jquery-3.1.1.min.js"></script>
<script src = "script.js"></script>
<link rel = "stylesheet" href="style.css">
<link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Passion+One|Source+Code+Pro" rel="stylesheet">
<title> AL-SABA.net </title>
</head>
<body>
<header>
<div class = "content">
<img src = "logo6.png" />
<h1> Title </h1>
<p>Design • Code • Programs </p>
</div>
</header>
<link href='http://fonts.googleapis.com/css?family=Varela+Round' rel = 'stylesheet' type = 'text/css'>
<div class="background-wrap">
<video id="video-bg-elem" preload="auto" autoplay="true" loop="loop" muted="muted">
<source src="coding.mp4" type="video/mp4">
Video not supported
</video>
</div>
<div class="arrow bounce">
</div>
<footer>
</footer>
</body>
</html>
&#13;
答案 0 :(得分:2)
你的代码有拼写错误,它说“.contect img”。试试这个:
| Out-Host