我有以下搜索代碼。文本Have a Question? Write here and press enter不會出現在回應模式下。
<div class="input-group" id="suggest">
<input name="s" id="s" type="text" onKeyUp="suggest(this.value);" onBlur="fill();" class="search-query form-control pull-right" autocomplete="off" placeholder="'.esc_attr__('Have a Question? Write here and press enter','mywiki').'" data-provide="typeahead" data-items="4" data-source="">
<div class="suggestionsbox" id="suggestions" style="display: none;"> <img src="'.esc_url(get_template_directory_uri().'/img/arrow1.png').'" height="18" width="27" class="upArrow" alt="upArrow" />
<div class="suggestionlist" id="suggestionslist"></div>
</div>
</div>
我懷疑它與id="s"輸入有關,因為如果我將其更改為id="sh"出現占位符文本。
所以我的問題是為什么不id="s",我更喜歡使用這個,因為它似乎是 WordPress 的默認設定。我討厭在這里修復它并在某個地方破壞其他東西。
更新:我意識到我正在使用的原始主題的問題-> https://fasterthemes.com/demo/mywiki-wordpress-theme/
uj5u.com熱心網友回復:
這可能是由例如您的主題的 CSS 代碼或顏色與輸入欄位背景顏色相同引起的。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/476399.html
上一篇:像單個輸入一樣組合兩個輸入標簽
下一篇:如何使表格行內
