Html 删除组合框和表之间的空格 就知道 > 姓名 &yearSelected=width=“299”height=“0”frameborder=“no”scrolling=“no”marginheight=“0px”align=“top”style=“border:0px”marginwidth=“0”>
间距由Html 删除组合框和表之间的空格 就知道 > 姓名 &yearSelected=width=“299”height=“0”frameborder=“no”scrolling=“no”marginheight=“0px”align=“top”style=“border:0px”marginwidth=“0”>,html,combobox,html-table,Html,Combobox,Html Table,间距由iframe元素引起。您可以看到这一点,例如,如果您首先将表单{outline:solid red}添加到样式表中,然后看到表单相当高,将其更改为iframe{outline:solid red}。使用Firebux检查文档时显示iframe元素的高度为150像素 与往常一样,HTML验证是发现许多错误的好工具,但在这种情况下,通过查看iframe标记是一个很好的文本编辑器,也可以看出问题的原因: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
iframe
元素引起。您可以看到这一点,例如,如果您首先将表单{outline:solid red}
添加到样式表中,然后看到表单相当高,将其更改为iframe{outline:solid red}
。使用Firebux检查文档时显示iframe
元素的高度为150像素
与往常一样,HTML验证是发现许多错误的好工具,但在这种情况下,通过查看iframe
标记是一个很好的文本编辑器,也可以看出问题的原因:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>就知道</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<div align="center">
<body>
<p align="center"><img src="./img/Logo.jpg" width="70" height="65"></p>
<form name="form1" method="get" action="?" onsubmit="getValue()">
<div align="center" style= "display:inline"><select id="uiSel">
<option value=" 请输入码"<?php if($resultkeyTag == " 请输入码"){echo 'selected';}?>> 号码</option>
<option value=" 请输入名"<?php if($resultkeyTag == " 请输入名" OR $resultkeyTag == ""){echo 'selected';}?>> 姓名</option>
</select></div>
<div align="center" style= "display:inline"><?php if(empty($_GET['key']))
<input style="color:#999;" name="key" type="text" id="Txt" style="height:17px" style="font-size:12px" size="20" style="color:gray" value=" 请输入名"
<?php }
</div>
<div style="display:inline"><iframe name="frame1" id="frame1" src=./localcombodata.php?eventSelected=<?php echo $_GET['key1'] ?>&yearSelected=<?php echo $_GET['keyYearSelected'] ?> width="299″ height="0″ frameborder="no″ scrolling="no″ marginheight="0px" align="top" style="border:0px" marginwidth="0" ></iframe></div>
<div style= "display:inline"><input type="submit" style="height:24px" style="font-size:13px" value="一下" ></div>
<input name="key1" type='hidden' id="content" size="1" value="<?php if($_GET['key1'] == ""){echo '全部事';}else{echo $_GET['key1'];} ?>">
<input name="keyYearSelected" type='hidden' id="inputYearSelected" size="1" value="<?php if($_GET['keyYearSelected'] == ""){echo '全部年份';}else{echo $_GET['keyYearSelected'];} ?>">
<input name="keyTag" type='hidden' id="contentkeyTag" size="1" value="<?php if($_GET['keyTag'] == ""){echo ' 请输入名';}else{echo $_GET['keyTag'];} ?>">
</form>
<table width="800" border="0" cellspacing="0" cellpadding="2" align="center" bordercolor="#FFFFFF" margin-top="0">
<tr bgcolor="#E6E6FA" >
<td width="40">年份</td>
<td width="*">事名称</td>
<td width="*">姓名</td>
<td width="48">性别</td>
<td width="58">号码</td>
<td width="74">成绩</td>
</tr>
</table>
</body>
</div>
</html>
紧随其后的是0〃
等,虽然width
值实际上将被解析为一个数字299
(忽略其余部分),但关键字height
丢失,即未识别出height
属性。因此,使用默认值150(像素)
最简单的修复方法是将每次出现的“
替换为”
但您可能应该尝试找出问题的原因。也许某些创作工具使用了转换为双素数字符的Ascii引号,并且使用了相当不合逻辑的方式(仅转换某些属性值规范的右引号).我多次尝试删除combobox和表之间的空格,但都失败了。我没有像上面那样使用CSS.Main代码。谢谢!新年快乐。我想代码有一些错误,如果只发布HTML而不发布PHP代码呢?要做到这一点,请加载网页,右键单击并选择查看页面源代码。非常感谢!这里是:澄清问题的答案应该是编辑问题,而不是在评论中。一个问题应该是可以理解的,不需要阅读评论。最简单的解决方法是有效的!非常感谢Jukka K.Korpela!
<iframe name="frame1" id="frame1"
src=./combodata.php?eventSelected=全部赛事&yearSelected=全部年份
width="299″ height="0″ frameborder="no″ scrolling="no″ marginheight="0px" align="top"
style="border:0px" marginwidth="0">
width="299″ height="