dw中如何给网页添加背景,添加在什么位置

发布网友

我来回答

3个回答

热心网友

按CTRL + j 打开页面属性对话框。
然后设置背景图像 点击浏览按钮。

也可以用css直接设置

<style type="text/css">
body{
background:url(../images/black.png) no-repeat right top;
}
</style>

no-repeat 背景不重复,定位在右上角
repeat repeat-X 水平方向重复
repeat repeat-Y 垂直方向重复

热心网友

<!--#include file="conn.asp"-->
<!--#include file="top.asp"-->
<style>
body{
background-color:#0000CC;}
</style>
<br />
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="314" bgcolor="#F4F4F4"><img src="images/特色副本.jpg" width="1004" height="314" /></td>
</tr>
</table>
<br />
<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#05686E">
<tr>
<td> </td>
</tr>
</table>
<br />
<br />

热心网友

找到<body>
改成
<body bgcolor="#000033">

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com