最近、Googleの検索エンジンをカスタム検索に更新しました。Chrome、Firefox、Safariでは正常に動作しますが、IE8とIE9では検索フィールドウィンドウが表示されません。CSSをチェックして、それが問題であるかどうかを確認しましたが、問題ではないようです。
これが彼らが私たちに使用してほしいスクリプトです、なぜそれがIEに表示されないのかという問題は誰にも見られませんか?
<!-- The following javascript appears before the closing </head> tag. -->
<script>
(function() {
var cx = '012938749785999463601:bae5a4ajf2q';
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>
<!-- This tag is inserted where the search box should render -->
<gcse:searchbox-only></gcse:searchbox-only>
これがサイトページです:http://amazingribs.com/tips_and_technique/index2.html
このコードは他のすべてのブラウザで機能します。何か案は?
ありがとう