看看我的網站下面的圖片:www.kokorugs.com刪除衝突的造型 - Bootstrap與谷歌自定義搜索
我使用的自舉。我相信,有一些衝突的CSS樣式。
問題是我看不到谷歌的CSS,不知道如何覆蓋這個樣式。
我的代碼(從谷歌)低於:
<aside class="box" style="padding:10px 0;">
<script>
(function() {
var cx = '009058734720051694368:e41h4lf-hsk';
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>
<gcse:search></gcse:search>
</aside>
我對 「盒子」 類CSS是無關緊要的,但我會包括它來避免任何提問:
.box {
background: #ffffff;
border: 2px solid #bcd78d;
border-radius: 15px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
margin-top: 10px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
我明白任何幫助消除這個雙邊框。謝謝!
UPDATE:
當我嘗試這樣做的CSS規則:
* {
border: none !important;
}
只有谷歌的邊框被刪除。圖片低於:
進展良好。看看這個jsFiddle:http://jsfiddle.net/SKrTF/ -----陰影現在消失了,但重點仍然存在,它與谷歌的框重疊。有任何想法嗎? – 2013-04-11 17:02:30
焦點刪除:http://jsfiddle.net/SKrTF/1/只是現在的重疊 – 2013-04-11 17:05:25
太棒了!只需要在輸入框中添加'margin-top:-1px;'即可。例如'#gs_tti0>輸入{margin-top:-1px!important;}'。看到這裏:http://jsfiddle.net/SKrTF/3/ – Omega 2013-04-11 17:09:31