寫css背景圖片代碼可以參考以下:
<html>
<head>
<styletype="text/css">
body{background-image:url(abc.jpg);}
</style>
</head>
<body>
</body>
</html>
擴展資料:
1、背景圖片語法:{background-image:url(url)|none}?
2、背景固定語法:{background-attachment:fixed|scroll}?
3、背景重復語法:{background-repeat:inherit|no-repeat|repeat|repeat-x|repeat-y}?
4、背景定位語法:{background-position:數值|top|bottom|left|right|center}?
百度百科-CSS語法