我现在需要我的搜索栏和按钮稍微透明一点……有点像当鼠标没有悬停在上面时的推特。我如何在 html/css 中执行此操作?CSS:
.search1{
position: absolute;
font-family:"Arial Unicode MS";
background-color:#CCCCCC;
border-style:none
}
.search2{
position: absolute;
border-style:none;
font-family:"Arial Unicode MS";
color:black;
background-color:#CCCCCC;
font-size:xx-large
}
input:hover{
background-color:white;
border-color:white;
}
HTML:
<form class="search2" method="get" action="default.html" />
<input class="search2" type="text" name="serach_bar" size="31" maxlength="255"
value="" style="left: 396px; top: 149px; width: 300px; height: 50px;" />
<input class="search1" type="submit" name="submition" value="Search" style=" padding- bottom:20px; left: 710px; top: 157px; height: 17px" />
<input class="search2" type="hidden" name="sitesearch" value="default.html" />
提前谢谢大家!
我是一名优秀的程序员,十分优秀!