永发信息网

谁能帮我这个htm代码背景宽度调一下啊??

答案:5  悬赏:20  手机版
解决时间 2021-08-01 11:51
  • 提问者网友:我的未来我做主
  • 2021-07-31 17:54

哎~ 由于我不懂htm代码啊!

所以把一张背景图片搞的像好多张似的~

地址是: http://3gley.host88.itpz.cn/wep/index.htm

谁愿意帮我的话,可以

或者直接把代码帮我改改:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<meta http-equiv="Cache-Control" content="no-cache, max-age=0" />
<title>坏小孩</title>
<style type="text/css">
html, body {
padding: 0px;
margin: 0px;
width: 100%;
height: 100%;
overflow: hidden;
}
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">
<tr>
<td align="center" valign="middle">
<table width="201" height="413" border="0" cellpadding="0" cellspacing="0" style="background-image: url('web_pics/mobile1.gif')">
<tr>
<td height="90" colspan="3" background="web_pics/mobile1.gif"></td>
</tr>
<tr>
<td width="26" height="388"></td>
<td width="201" height="413"><iframe width="100%" height="100%" frameborder="0" src="web_pics/Simulator.htm"></iframe></td>
<td width="26" height="388"></td>
</tr>
<tr>
<td colspan="3" height="88"></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

最佳答案
  • 五星知识达人网友:有你哪都是故乡
  • 2021-07-31 18:26
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<meta http-equiv="Cache-Control" content="no-cache, max-age=0" />
<title>坏小孩</title>
<style type="text/css">
html, body {
padding: 0px;
margin: 0px;
width: 100%;
height: 100%;
overflow: hidden;
}
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;">
<tr>
<td align="center" valign="middle">

<table width="201" height="413" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td height="90" colspan="3" background="web_pics/mobile1.gif"></td>
</tr>
<tr>
<td width="26" height="388"></td>

<td width="201" height="413"><iframe width="100%"
height="100%" frameborder="0"
src="web_pics/Simulator.htm"></iframe></td>
<td width="26" height="388"></td>
</tr>
<tr>
<td colspan="3" height="88"></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>


style="background-image:
url('web_pics/mobile1.gif')"
删掉一个背景图就好了 版你删了一个了 你看看呢
全部回答
  • 1楼网友:毛毛
  • 2021-07-31 20:52

让背景不重复就行了background-repeat:no-repeat

代码如下:

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk" /> <meta http-equiv="Cache-Control" content="no-cache, max-age=0" /> <title>坏小孩</title> <style type="text/css"> html, body { padding: 0px; margin: 0px; width: 100%; height: 100%; overflow: hidden;

background-repeat:no-repeat; } </style> </head> <body> <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;"> <tr> <td align="center" valign="middle"> <table width="201" height="413" border="0" cellpadding="0" cellspacing="0" style="background-image: url('web_pics/mobile1.gif')"> <tr> <td height="90" colspan="3" background="web_pics/mobile1.gif"></td> </tr> <tr> <td width="26" height="388"></td> <td width="201" height="413"><iframe width="100%" height="100%" frameborder="0" src="web_pics/Simulator.htm"></iframe></td> <td width="26" height="388"></td> </tr> <tr> <td colspan="3" height="88"></td> </tr> </table> </td> </tr> </table> </body> </html>

  • 2楼网友:行路难
  • 2021-07-31 20:45
就一张图片什么意思???
  • 3楼网友:西风乍起
  • 2021-07-31 19:21

background-repeat: repeat-x;

你试试行么。

  • 4楼网友:woshuo
  • 2021-07-31 18:32

<!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=gbk" /> <meta http-equiv="Cache-Control" content="no-cache, max-age=0" /> <title>坏小孩</title> <style type="text/css"> html, body { padding: 0px; margin: 0px; width: 100%; height: 100%; overflow: hidden; } .bgimg { background-image: url(web_pics/mobile1.gif); background-repeat: no-repeat; height: 413px; width: 201px; } </style> </head> <body> <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%;"> <tr> <td align="center" valign="middle"> <table width="201" height="413" border="0" cellpadding="0" cellspacing="0" class="bgimg"> <tr> <td height="90" colspan="3" background="web_pics/mobile1.gif"></td> </tr> <tr> <td width="26" height="388"></td> <td width="201" height="413"><iframe width="100%" height="100%" frameborder="0" src="web_pics/Simulator.htm"></iframe></td> <td width="26" height="388"></td> </tr> <tr> <td colspan="3" height="88"></td> </tr> </table> </td> </tr> </table> </body> </html>

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯