Php html表格内容包含时未对齐
首先,我想说我的英语不是很好,所以请原谅我的错误,如果我做了一些难以理解的事情,请告诉我……Php html表格内容包含时未对齐,php,html,css,Php,Html,Css,首先,我想说我的英语不是很好,所以请原谅我的错误,如果我做了一些难以理解的事情,请告诉我…… 我用php/mysql为我的网站创建了一个内部搜索引擎,它可以正常工作,当它单独运行时,它看起来也不错 但当我把它放在主页上时,它的大小会改变,而且会变得不对齐 我的问题是,我做错了什么,我怎样才能纠正它 表格编号为: <form method="post" action=""> <input type="hidden" name="s" value="1">
我用php/mysql为我的网站创建了一个内部搜索引擎,它可以正常工作,当它单独运行时,它看起来也不错
但当我把它放在主页上时,它的大小会改变,而且会变得不对齐 我的问题是,我做错了什么,我怎样才能纠正它 表格编号为:
<form method="post" action="">
<input type="hidden" name="s" value="1">
<table>
<tr>
<td><input type="text" placeholder="Cerca nel sito" name="ricerca" required></td>
<td><input type="image" src="img/search.png" alt="Cerca"></td>
</tr>
</table>
</form>
如果还需要什么,请告诉我
该表多次无法修复,需要一些帮助
试试这个可能您的div继承了一些应用于元素的属性,比如“p”和“input”,或者浏览器的默认设置。我们可能无法帮助您,除非我们有一个示例进行调试…确保您的css属性不重叠。
<div id="content">
<div id="right">
<?php
include("search.php");
include('contatti.php');
?>
</div>
other stuff
</div>
#content
{
padding-left:50px;
padding-right:50px;
min-width:1090px;
}
#right h1
{
font-family:trajan pro,agency fb,Arial, Helvetica, sans-serif;
font-weight:normal;
color:#555;
padding:40px 0 0 30px;
}
#right h2
{
padding:15px 10px 0 30px;
font:13px normal trajan pro,agency fb,arial,helvetica,sans-serif;
color:#3ba4c4;
text-decoration:underline;
}
#right p
{
padding:10px 10px 0 30px;
}
#right
{
width:280px;
color:#000;
float:right;
}