问题是我不知道如何为“Search example.com”文本应用 css 规则,更准确地说我不知道该怎么做,因为标签之间的文本没有闭合。
此代码由 javascript ( support.google.com ) 生成
这是代码:
<div id="goog-wm">
<div class="content">
<h3 class="other-things"><b>Other things to try:</b></h3>
<ul>
<li class="search-goog"><script type="text/javascript"> a code here... </script> Search <b>example.com</b>:
<form method="get" onsubmit="return ss(this)">
<input type="text" value="blablabla" id="goog-wm-qt" name="q" size="40">
<input type="submit" id="goog-wm-sb" value="Google Search">
</form>
</li>
</ul>
</div>
</div>
我想做的是在搜索框和文本之间应用 20px 的边距...
我该怎么做?提前谢谢你。
最佳答案
你能为表单应用 20px
上边距吗?
.search-goog form { margin-top: 20px; }
关于html - 如何为此代码添加 css 规则?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8488641/