Google Custom Search (CSEv2) help on styling?

后端 未结 6 785
星月不相逢
星月不相逢 2020-12-10 05:59

I need help on styling the Google Custom Search Box (not the results)

Old styles were using the form tags, where you could easily style the look &

6条回答
  •  北海茫月
    2020-12-10 07:05

    1. Use a DOM inspection tool like the one built into the Google Chrome or Firefox browsers. (Right click on an element and select "Inspect.") This will allow you to determine element IDs/classes and their current styles.

    2. Write CSS rules that override those styles, like this:

      input.gsc-input {}
      input.gsc-search-button {}
      form.gsc-search-box {}
      div.gsc-control-cse {}
      

提交回复
热议问题