谷歌CSE:如何消除CSS谷歌?

时间:2015-11-11 00:42:07

标签: javascript html google-custom-search

我解释了我的问题:

我想通过“Google自定义搜索引擎”服务在我的网站上创建搜索引擎 问题是我不喜欢搜索栏,我觉得谷歌创建的整个CSS上的工作相当无聊。 有可能删除它的CSS吗?

但结果页面的CSS很好......

这是生成的代码:

<script>
  (function() {
var cx = '015736343358803935205:m2shzyx2lrg';
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>

1 个答案:

答案 0 :(得分:0)

我认为这可能会非常有用吗?

搜索控件的示例:

<SearchControls input_border_color="#BCCDF0"
                button_border_color="#666666"
                button_background_color="#CECECE"
                tab_border_color="#E9E9E9"
                tab_background_color="#E9E9E9"
                tab_selected_border_color="#FF9900"
                tab_selected_background_color="#FFFFFF" />

Look and Feel | Custom Search

<强>更新

  

要自定义搜索框:    1.在控制面板的左侧菜单中,单击“外观”。

     

2.在“自定义样式”部分中,单击所需的选项。

     

3.单击“自定义”,然后:   •要更改整个自定义搜索元素的边框和背景,请单击&gt;全局样式选项卡。   •至   更改搜索按钮和搜索输入框的背景颜色,   单击“搜索控件”

     

•点击Save&amp;获取代码。

改编自Instructions for customized UI for Search

相关问题