我希望在浏览器未全屏显示时,背景图像的底部(而不是顶部)出现。
我尝试过:
<body
style="background-image: url('./image5.jpg');
background-size: cover;
background-position: top 150px;"
>
...尝试将图像向上移动一点,以便显示底部而不是顶部(但什么也没发生)。
现在,背景图片的最大顶部出现了,并且某些底部的部分处于隐藏状态,而不是全屏显示。这是屏幕截图:
<!DOCTYPE html>
<html>
<head>
<title>Log In</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body style="background-image: url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMSEhUTExMWFhUXFxgYGRcYFxcYGhgdGBgXGBcdFxgYHSggGB4lHRgXITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGzUmICUvLS0tLS81LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAKgBLAMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAEBQMGAAECBwj/xAA6EAABAgQEAwYFBAEEAgMAAAABAhEAAyExBBJBUQVhcQYTIoGR8DKhscHRFEJS4fEVIzNiB0NTcrL/xAAaAQADAQEBAQAAAAAAAAAAAAACAwQBAAUG/8QAKxEAAgICAgICAQMEAwEAAAAAAAECEQMhEjEEQRNRIhRh0TJCkaFxsfAj/9oADAMBAAIRAxEAPwDzNBjtMaIjaUx7B49kahWNaxMRWNBNYw2yeUGhlhp0LZSYMCaQmSKIyYySyhWEHFfjYftDP84cYYswgPHcOLkpG5P1jIUmbktx0KMsayxI0TfpVaiHkytguWN5YlyRsyztHUdZFljTRIRHMbRiZyBG2jYjYEbR1nOWNERI0aIjqOsjaMjtoxoGjbOQImw5ILxxlhhwwJ1aBktBQexngJGYAkDpDiSQ1ALwvl4pIDgjpA2Jx7Wp0iKUW2egpJIl4pIObMlQfbeFOICiCVaUiVCVzCMgJVtXzNLQViJMyktSfEaEbdY2qMexWrBi4BO4FWjn9ER62i78P4emShRWxVpo9IF/ToLln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XoAXPvnEWerPG4yBxb2YjuZiWY1Knr09t6mJl4dZYlVia13ctveMjIHLqjGcy0IIOqXa7E3Jr5wThZSj40l8oJtyIABjIyMS7M6I8IpKaKLJfMXvQWDaHpr5QcJ5fOAxUkKqqhsA1Kf1GRkJlH2c37JBOBSoOXcnmo0FLU98o1hsUtRK0sCCrKH2ZhW9NecZGRnGosdEtHD53+2FTUkhWYMokAiqgQ2lzbpA3EuHy1JSsAocEOG/bT4b6Cr6xqMjM8fjSa9g45c7sV4rhRDDMFEuxFlZWfKfNtLGAJuBCWqXO/5jIyG4/wAo2DKKTBf06jRLq5esSf6epgFMmjuaitnHr6RkZCp5HGVI2MU1YfhOCKCQtQKg4+EpBItYuW/ETy+FImIISkpUD+9TXcUehsfMEaRkZEayylyd9fyN4RSRErhYly194B3hISE5gcr6ljUkhtfWOMBhFISAkjM5dQvo9Rb+uUZGRVmyShFUKgFy8CUqCs7lmyocu4LlyaAP6iGeKSlYZYScoYlTKJdibBgXrW8ZGRP8sroqSQJMVKloolJY6JDkD/sluXXYwGMTMmLUyMrMXoxCnY8qDXeNxkcpdt7Et7o2peQZ82dqGtHBLmrN5PEUziILpSRVqirnV9P8RkZDMcFK39AOTMGIWDlV4asRyDA3NTrXSJpUsJBcAkEMOQrQ/u3aNRkZ1tHROlTis+MJCXplu7s5Pr0c2gIIKlHMSEi25YgAbi2ttrRkZDeVBhWIm92Q13fQ8g4HrAGImAJZ3OlH8jve45RqMhsVaTOk66Ap+GJIUPCGNHu1xAwlHLr/ANbB9a72NIyMjYyZlas3IlH9ysoBqXrd2DWprpGTJMujqCacw96mheMjIagWf//Z'); background-size: cover; background-position: top -200px;">
<div class="header" style="background: rgba(76, 175, 80, 0.1);">
<h2 style="color: #FFFACD;">Register</h2>
</div>
<form method="post" action="register.php" style="background: rgba(76, 175, 80, 0.2);">
<?php include('errors.php'); ?>
<div class="input-group">
<label style="color: #FFFACD;">Username</label>
<input type="text" name="username" value="<?php echo $username; ?>" style="background: rgba(0, 0, 250, 0.1);">
</div>
<div class="input-group">
<label style="color: #FFFACD;">Email</label>
<input type="email" name="email" value="<?php echo $email; ?>" style="background: rgba(0, 0, 250, 0.1);">
</div>
<div class="input-group">
<label style="color: #FFFACD;">Password</label>
<input type="password" name="password_1" style="background: rgba(0, 0, 250, 0.1);">
</div>
<div class="input-group">
<label style="color: #FFFACD;">Confirm password</label>
<input type="password" name="password_2" style="background: rgba(0, 0, 250, 0.1);">
</div>
<div class="input-group">
<button type="submit" class="btn" name="reg_user" style="background: rgba(0, 0, 250, 0.1);">Register</button>
</div>
<p style="color: #FFFACD;">
Already a member? <a href="login.php" style="color: #6495ED;">Sign in</a>
</p>
</form>
</body>
</html>
答案 0 :(得分:1)
我注意到您正在做的一件事是尝试为背景设置一个固定值。您可以尝试的方法是:
background-size: 100% 100vh;
这可能会起作用,因为它将背景大小设置为整个页面高度,因为您的浏览器窗口的大小可能与页面预期的大小不同。
答案 1 :(得分:1)
由于要从底部显示图像,因此可以设置background-position:bottom
,这在所有屏幕尺寸中都有意义。但是请记住baground-repeat
在这种情况下会引起问题。因此,您需要设置background-repeat:no-repeat
。尝试下面的代码。
background-image: url('./image5.jpg');
background-size: cover;
background-position: bottom;
background-repeat:no-repeat;