小编use*_*440的帖子

使用Twitter Bootstrap的Google CSE无法正确显示搜索框

Google自定义搜索(CSE)未正确显示搜索框和按钮.我正在使用Twitter Bootstrap v3.1.0.

<script>
    (function() {
        var cx = '009077552906670546181:2ufng0dmsos';
        var gcse = document.createElement('script');
        gcse.type = 'text/javascript';
        gcse.async = true;
        gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
            '//www.google.com/cse/cse.js?cx=' + cx;
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(gcse, s);
    })();
</script>
<gcse:search></gcse:search>
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?

http://jsfiddle.net/nz6rh/

异常搜索框的屏幕截图

css jquery google-custom-search twitter-bootstrap

10
推荐指数
2
解决办法
6535
查看次数