我正在制作一个php/mysql网站,需要制作一个搜索面板:
CSS代码如下:
#search{
color: #c02537;
width:80%;
margin: 20px auto;
padding: 20px 20px;
background: rgba(197,101,29,0.6);
border-radius: 0 15px 0 15px;
-moz-border-radius: 0 15px 0 15px;
-webkit-border-radius: 0 15px 0 15px;
}
#searchf{
margin:0 auto;
width: 80%;
}
相应的 HTML 代码是:
<div id="search">
<form method="post" action="index.php" name="search" id="searchf">
<table>
<tr>
<td>Food Category: <input type="text" name="food_category" id="searchfc"/> </td>
<td>City: <input type="text" name="city" id="searchfc"/> </td>
</tr>
</table>
</form>
</div>
CSS的fill属性应用于margin、padding和border属性,但不影响颜色。
我不知道为什么它不起作用。有人知道原因吗?
HTML
代码? - Pranav 웃