如何修改网页的背景颜色
1、打开Adobe Dreamweaver,新建一个HTML网页文件.

3、点击右边的所有规则,新建一条规则,在弹出的界面,选择器类型为标签选择器,选择器名称为body,然后点击确认。

4、在CSS规则里面选择背景,在“background-color”里面选择一种颜色作为网页背景色,然后点击确认。


7、然后在调试网页,查看网页的背景,图片已经作为网页的背景颜色了。代码如下:<挢旗扦渌;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style type="text/css">body { background-image: url(10/38.png); }</style></head><body></body></html>
