私は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の塗りつぶしは、余白、パディング、境界線の属性を適用しますが、色は適用しません。
なぜ機能しないのかわかりません。誰か手がかりがありますか?