![](http://imgsrc.baidu.com/forum/w%3D580/sign=748a56192f381f309e198da199004c67/b46673cf3bc79f3d12798011bda1cd11738b29d6.jpg)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
#search
{
width:540px;/*定义搜索框的宽度*/
height:36px;/*定义搜索框的高度*/
font-size:18px;/*定义搜索框文字大小*/
font-family:"Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;/*定义搜索框的字体,妈蛋我不知道百度搜索框是什么字体,你们凑合看吧*/
}
#submit
{
position:absolute;/*搜索框定位,绝对定位,请大家帮我看看,这种定位方式是不是有问题,共勉学习*/
left:547px;/*定位,左边开始547px*/
width:100px;/*提交按钮宽度*/
height:36px;/*提交按钮高度*/
background:#3385ff;/*提交按钮背景颜色*/
color:#FFFFFF;/*提交按钮文字颜色。白色*/
font-size:14px;/*提交按钮文字大小*/
border:1px solid #4791ff;/*提交按钮边框定义,如果不定义就是默认的按钮效果,好难看的。*/
}
/*百度搜索框右边的X 我不知道怎么改,大神指教啊。。。。。*/
</style>
</head>
<body>
<input name="search" type="search" id="search" tabindex="q" autocomplete="off">
<input type="submit" name="submit" id="submit" value="百度一下">
</body>
</html>
——————————
以上是代码和注释。
![](http://imgsrc.baidu.com/forum/w%3D580/sign=2818f6fec91b9d168ac79a69c3dfb4eb/5bcc5aee3d6d55fbec2512076a224f4a21a4dd8f.jpg)
问题1,这个X我不知道怎么修改,,郁闷中。。
问题2,搜索框内的字体百度应该是宋体,我改成了英文字体。
主要问题3,提交按钮默认是和搜索框有一点距离的,我使用绝对定位将提交按钮和搜索框放在了一起,第一个问题是这个地方使用相对定位对不对?另外这个我当时使用了相对定位,但是好像没有用我才使用的绝对定位。