2016-08-08 30 views
-1

請幫助我。我想在圖像上創建形狀,在我的頁面上,這應該是節的背景。 謝謝。如何使用css在我的頁面上創建背景

enter image description here

+1

試過'background:url(image.png);'? –

+0

你可以發佈你的代碼並解釋你想要你的背景是什麼元素嗎? – Roysh

+0

歡迎來到ovrflow :-)請看看[問] 以及如何創建[mcve]。這將有助於獲得有用的答案。 我將此問題標記爲關閉。 – JimHawkins

回答

2

試試這個

.yourtag { 

background: radial-gradient(circle at 91% 50%, transparent 35%, red 15px); 

} 

小提琴 - https://jsfiddle.net/p0ctco0m/1/

+0

#bullet { padding-bottom:50px; 背景:徑向漸變(圓91%50%,透明35%,#fa6900 15px); } – Ros

1

你只需要在body標籤添加背景圖片

body{ 
 
    background: url('http://i.stack.imgur.com/7GpQI.png') no-repeat center center; 
 
    height: 100vh; 
 
    background-size: cover; 
 
}
<body> 
 
    </body>