我正在尋找實現如下所示的半頁背景圖像:www.washiarts.com。我使用Squarespace構建網站,因爲我是網頁設計新手......請善待。垂直半頁背景圖像(在Squarespace中)
我知道我需要使用一個容器,然後在那裏有圖像,儘管我正在努力在Squarespace中使用代碼輸入的選項來完成它。我可以將圖像,並使用這些代碼的變化正確對齊,但它顯得捉襟見肘:
> body {
background-image: url("IMAGE URL");
background-position: 0;
background-size: 50% 100%;
background-repeat: no-repeat;
}
感謝您的任何幫助。
閱讀此,它會幫助! https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Background_and_Borders/Scaling_background_images – Goombah
感謝您的建議! –