1

我在 wc3 验证器中有错误。错误是下一个:

 Warning Line 139, Column 49: Element name gcse:searchbox-only cannot be represented as XML 1.0.

                    <div class="search-row"><gcse:searchbox-only></gcse:searchbox-only></div>

    ✉
    Error Line 139, Column 49: Element gcse:searchbox-only not allowed as child of element div in this context. (Suppressing further errors from this subtree.)

                    <div class="search-row"><gcse:searchbox-only></gcse:searchbox-only></div>

我的搜索在下一次编译中工作:在标题页中我得到了搜索框(我把它做成 css 所以我的代码:)<div class="search-row"><gcse:searchbox-only></gcse:searchbox-only></div>。在页面www.domain.com/?action=search中显示搜索结果(<gcse:searchresults-only></gcse:searchresults-only>)。

我怎样才能消除这个错误?

我得到了解决方案:

<div class="gcse-searchbox-only"></div>

现在验证是绿色的!:-)

4

0 回答 0