我做张html背景,代码裏哪个部份更换我网上图背景的地址?

来源:百度知道 编辑:UC知道 时间:2024/05/11 19:23:42
<html>
<head>
<title>未标题-2</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
background-image: url(http://2.2pb.cn/myfile/cly/jy/1.gif);
}
-->
</style></head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p><!-- ImageReady Slices (未标题-2) -->
<!-- End ImageReady Slices -->
</p>
</body>
</html>
<html>
<head>
<title>未标题-4</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
bod


body {
background-image: url(http://2.2pb.cn/myfile/cly/jy/1.gif);
}

<!--
body {
background-image: url(images/%E6%9C%AA%E6%A0%87%E9%A2%98-4.gif);
}
-->

6.2. CSS background-image 属性
background-image属性是CSS2.1提出的.IE6,Firefox1.5,Opera9支持此属性
background-image -- 定义背景图片

* 取值: <uri> | none | inherit
o <uri>: URI
o none: 无
o inherit: 继承
* 初始值: none
* 继承性: 否
* 适用于: 所有元素
* background:背景.image:图片.
* 引用网址:http://www.dreamdu.com/css/property_background_image/

示例

body
{
background-image:url('html_table.png');
}
p
{
background-image:none;
}