html这个里面的字怎么往右移一点!字挨着边框太近了,加什么代码?
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<div class="content">
<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">
.content {
font-size:14px;
width:950px;
margin:0px auto;
}
#textfield{ width:150px; height:22px; border:1px solid #cecece;}
#textarea{ width:300px; height:200px; border:1px solid #cecece;}
#refer{
width:77px;
height:28px;
background:url(img/a_17.gif);
line-height: 28px;
text-align: center;
color: #C00;
font-weight: bold;
}
table{ padding-left:10px;
border:1px solid #C00;
overflow:hidden;
color:#333;
}
h1{ margin:0px; padding:0px;
line-height: 50px;
}
</style>
</head>
<div class="content" style="padding-left:10px;">
<table width="660" border="0">
<tr>
<td height="35px" colspan="2"><h1>提供团购信息</h1></td>
</tr>
<tr>
<td height="35px" colspan="2">如果您是商家、网上商城,想在美团网组织团购,请填写:</td>
</tr>
<tr>
<td height="35px" >您的称呼</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" >您的电话</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" >其它联系方式</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr><td></td>
<td style="font-size:12px;">请留下您的手机、QQ号或邮箱,方便联系</td>
</tr>
<tr>
<td height="35px" >城市</td>
<td height="35px" ><select name="">
<option>武汉</option>
<option>北京</option>
<option>深圳</option>
<option>上海</option>
<option>长沙</option>
</select></td>
</tr>
<tr>
<td height="35px" >团购商家名称</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" >团购类型</td>
<td><select name="">
<option>美食</option>
<option>娱乐</option>
<option>旅游</option>
</select></td>
</tr>
<tr>
<td valign="top">团购内容</td>
<td><textarea id="textarea" name="" cols="" rows=""> </textarea></td>
</tr>
<tr height="40px">
<td> </td>
<td><div id="refer">提交</div></td>
</tr>
</table>
</div>
<body>
</body>
</html>
</div> 展开
<div class="content">
<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">
.content {
font-size:14px;
width:950px;
margin:0px auto;
}
#textfield{ width:150px; height:22px; border:1px solid #cecece;}
#textarea{ width:300px; height:200px; border:1px solid #cecece;}
#refer{
width:77px;
height:28px;
background:url(img/a_17.gif);
line-height: 28px;
text-align: center;
color: #C00;
font-weight: bold;
}
table{ padding-left:10px;
border:1px solid #C00;
overflow:hidden;
color:#333;
}
h1{ margin:0px; padding:0px;
line-height: 50px;
}
</style>
</head>
<div class="content" style="padding-left:10px;">
<table width="660" border="0">
<tr>
<td height="35px" colspan="2"><h1>提供团购信息</h1></td>
</tr>
<tr>
<td height="35px" colspan="2">如果您是商家、网上商城,想在美团网组织团购,请填写:</td>
</tr>
<tr>
<td height="35px" >您的称呼</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" >您的电话</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" >其它联系方式</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr><td></td>
<td style="font-size:12px;">请留下您的手机、QQ号或邮箱,方便联系</td>
</tr>
<tr>
<td height="35px" >城市</td>
<td height="35px" ><select name="">
<option>武汉</option>
<option>北京</option>
<option>深圳</option>
<option>上海</option>
<option>长沙</option>
</select></td>
</tr>
<tr>
<td height="35px" >团购商家名称</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" >团购类型</td>
<td><select name="">
<option>美食</option>
<option>娱乐</option>
<option>旅游</option>
</select></td>
</tr>
<tr>
<td valign="top">团购内容</td>
<td><textarea id="textarea" name="" cols="" rows=""> </textarea></td>
</tr>
<tr height="40px">
<td> </td>
<td><div id="refer">提交</div></td>
</tr>
</table>
</div>
<body>
</body>
</html>
</div> 展开
1个回答
展开全部
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<div class="content">
<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">
.content {
font-size:14px;
width:950px;
margin:0px auto;
}
#textfield{ width:150px; height:22px; border:1px solid #cecece;}
#textarea{ width:300px; height:200px; border:1px solid #cecece;}
#refer{
width:77px;
height:28px;
background:url(img/a_17.gif);
line-height: 28px;
text-align: center;
color: #C00;
font-weight: bold;
}
table{ padding-left:10px;
border:1px solid #C00;
overflow:hidden;
color:#333;
}
h1{ margin:0px; padding:0px;
line-height: 50px;
}
</style>
</head>
<div class="content" style="padding-left:10px;">
<table width="660" border="0">
<tr>
<td height="35px" colspan="2"><h1>提供团购信息</h1></td>
</tr>
<tr>
<td height="35px" colspan="2" style="padding-left:50px;">如果您是商家、网上商城,想在美团网组织团购,请填写:</td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">您的称呼</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">您的电话</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">其它联系方式</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr><td></td>
<td style="font-size:12px;">请留下您的手机、QQ号或邮箱,方便联系</td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">城市</td>
<td height="35px" ><select name="">
<option>武汉</option>
<option>北京</option>
<option>深圳</option>
<option>上海</option>
<option>长沙</option>
</select></td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">团购商家名称</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">团购类型</td>
<td><select name="">
<option>美食</option>
<option>娱乐</option>
<option>旅游</option>
</select></td>
</tr>
<tr>
<td valign="top" style="padding-left:50px;">团购内容</td>
<td><textarea id="textarea" name="" cols="" rows=""> </textarea></td>
</tr>
<tr height="40px">
<td> </td>
<td><div id="refer" style="padding-left:50px;">提交</div></td>
</tr>
</table>
</div>
<body>
</body>
</html>
</div>
我在你每个TD属性里加了style="padding-left:50px;"
<div class="content">
<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">
.content {
font-size:14px;
width:950px;
margin:0px auto;
}
#textfield{ width:150px; height:22px; border:1px solid #cecece;}
#textarea{ width:300px; height:200px; border:1px solid #cecece;}
#refer{
width:77px;
height:28px;
background:url(img/a_17.gif);
line-height: 28px;
text-align: center;
color: #C00;
font-weight: bold;
}
table{ padding-left:10px;
border:1px solid #C00;
overflow:hidden;
color:#333;
}
h1{ margin:0px; padding:0px;
line-height: 50px;
}
</style>
</head>
<div class="content" style="padding-left:10px;">
<table width="660" border="0">
<tr>
<td height="35px" colspan="2"><h1>提供团购信息</h1></td>
</tr>
<tr>
<td height="35px" colspan="2" style="padding-left:50px;">如果您是商家、网上商城,想在美团网组织团购,请填写:</td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">您的称呼</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">您的电话</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">其它联系方式</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr><td></td>
<td style="font-size:12px;">请留下您的手机、QQ号或邮箱,方便联系</td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">城市</td>
<td height="35px" ><select name="">
<option>武汉</option>
<option>北京</option>
<option>深圳</option>
<option>上海</option>
<option>长沙</option>
</select></td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">团购商家名称</td>
<td height="35px" ><input id="textfield" name="" type="text" /></td>
</tr>
<tr>
<td height="35px" style="padding-left:50px;">团购类型</td>
<td><select name="">
<option>美食</option>
<option>娱乐</option>
<option>旅游</option>
</select></td>
</tr>
<tr>
<td valign="top" style="padding-left:50px;">团购内容</td>
<td><textarea id="textarea" name="" cols="" rows=""> </textarea></td>
</tr>
<tr height="40px">
<td> </td>
<td><div id="refer" style="padding-left:50px;">提交</div></td>
</tr>
</table>
</div>
<body>
</body>
</html>
</div>
我在你每个TD属性里加了style="padding-left:50px;"
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询