所以,我想讓這張圖片完全展示出來。到目前為止,這是我的代碼:
鏈接:https : //summit.tahaparacha1.repl.co/
HTML:
<div class="header">
<h1>Learn Mathmatics In Minutes!</h1>
<h3>Increase your knowledge with Summit! Summit allows you discover the endless possiblities you probably thought never exsisted. Start learning for free at your own pace now, or scroll down to see what we offer.</h3>
<a class="grow "href="#">Start Learning</a>
</div>
CSS:
.header {
background-image: url("images/SummitHome1.jpg");
width: 100%;
height: 100vh;
}
uj5u.com熱心網友回復:
聽起來您正在尋找background-size物業。
雖然我不確定我是否足夠理解您的愿望,但無法確定您想要的選項。cover或者contain?
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/387047.html
