我只是在網站上使用WordPress CMS進行開發。
在IE中,Firefox,Opera和其他瀏覽器可以正常工作,但Chrome瀏覽器沒有。
現場http://dian.7u.cz在Firefox中搜索表單處於良好狀態,但在Chrome上它是在真實位置下行。在wordpress搜索表單中的Chrome bug
我生成這樣
<div id="topsearch">
<?php get_search_form(); ?>
</div>
該按鈕
火狐使它像這樣
<div id="topsearch">
<div id="search">
<form id="searchform" action="http://localhost/wordpress/" method="get">
<input id="s" type="text" onfocus="if (this.value == 'Hľadať') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Hľadať';}" name="s" value="Hľadať">
</input>
<input type="image" style="border:0; vertical-align: top;"src="http://localhost/wordpress/wp-content/themes/GamesMax/GamesMax/images/search.gif">
</input>
</form>
</div>
</div>
而Chrome使它像這樣
<div id="topsearch">
""
<div id="search">
<form id="searchform" action="http://localhost/wordpress/" method="get">
<input id="s" type="text" onfocus="if (this.value == 'Hľadať') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Hľadať';}" name="s" value="Hľadať">
</input>
<input type="image" style="border:0; vertical-align: top;"src="http://localhost/wordpress/wp-content/themes/GamesMax/GamesMax/images/search.gif">
</input>
</form>
</div>
</div>
我的CSS爲卓爲:
#topsearch {
text-align:left;
float:right;
margin-bottom: 0;
margin-right: 17px;
margin-top: 9px;
}
有人能幫助我嗎?