javascript - 放在前面 - 搜索栏 HTML
问题描述
我知道这可能与 z-index 有关,但我似乎无法弄清楚。代码片段是:
<form method="get" action="http://www.google.com/search">
<div>
<table border="0" cellpadding="0">
<tr>
<td>
<input type="text" name="q" size="15" maxlength="255" value="" />
<input type="submit" value="GO" /></td></tr> <tr><td align="right" style="font-size:75%">
<input type="checkbox" name="sitesearch" value="<website_address>" checked /> SEARCH <br />
</td>
</tr>
</table>
</div>
</form>
我试过创建一个类,但它似乎不影响它:
.search{
z-index:absolute;
}
<form method="get" action="http://www.google.com/search"> <div class="search">
在将搜索栏置于最前面并进行了相当多的实验时,我还没有找到太多信息。我可以尝试将其他人放在后面,但我真的很好奇是否有办法将搜索栏放在前面。
解决方案
推荐阅读
- javascript - Send back not empty xmlhttprequest
- python - 不正确的矩阵逆结果
- reactjs - 创建反应组件时何时使用箭头函数与类与对象文字?
- java - Amazon Merchant Fulfillment 创建货件标签
- node.js - 为什么地图功能没有完成它的执行
- plesk - Plesk,未收到传入的电子邮件
- python - pandas.DataFrame 上的 numpy.logical_and.reduce
- java - 如何在 Springboot 应用程序中使用 mongo jpa 处理基类更新?
- javascript - ReactJs 状态发生变化,但 iframe 没有变化
- php - PHP - 替换文本而不覆盖已替换的文本