我使用的基本代碼和標準的「緊湊」的主題爲GCSE:如何用一個說「搜索」的按鈕替換谷歌自定義搜索引擎的放大鏡?
<script>
(function() {
var cx = '111111111111111111111:11111111111';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
這使得輸入按鈕:
<td class="gsc-search-button">
<input type="image" src="http://www.google.com/uds/css/v2/search_box_icon.png" class="gsc-search-button gsc-search-button-v2" title="search">
</td>
我想它是這樣的
<td class="gsc-search-button">
<input type="button" value="search" title="search">
</td>
我似乎無法弄清楚如何去做。這可能嗎?
對我有用! bootstrap 3.3.4 –
很高興它爲你工作。 – ilter
你能夠分享你使用的div的例子嗎? –