background-image 屬性可以設置背景圖像。
背景圖像可以填充整個頁面的,也可以填寫一部分。
background-image 屬性的使用很簡單:background-image:url(圖片地址)
填充整個頁面示例
<!DOCTYPE html>
<
html
>
<
head
>
<
title
>背景圖片</
title
>
<
style
type
=
"text/css"
>
body {
background-image: url("https://www.liyongzhen.com/docs/images/crossline-dots.png");
padding: 20px;}
</
style
>
</
head
>
<
body
>
<
h1
>軟件開發,成就夢想</
h1
>
</
body
>
</
html
>