【发布时间】:2015-04-27 17:35:01
【问题描述】:
我正在为 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>
我似乎不知道该怎么做。这可能吗?
【问题讨论】:
标签: javascript google-custom-search