---
title: "前端学习点滴留痕1: bgcolor+background"
author: "四书五经"
date: "2017-08-06T21:59:04Z"
tags: []
categories: ["Web前端"]
slug: "1-bgcolor-background"
draft: false
lastmod: "2017-08-06T21:59:04Z"
id: 2388479
url: "https://coderanch.iteye.com/blog/2388479"
---

bgcolor: 背景颜色

background:背景图片，可以是gif/jpg格式图片，不可以是png格式图片

 

eg:

&lt;body bgcolor="blue" background="img/xxx.jpg"&gt;

&lt;table border="1" bgcolor="blue" background="img/xxx.jpg"&gt;