html写入百度搜索框,仿百度搜索框布局

这篇博客详细介绍了如何使用HTML和CSS来创建一个类似于百度搜索框的布局。内容包括设置搜索框的外边距、宽度、背景色、文字对齐方式,以及输入框和按钮的样式设计。此外,还提到了图片、绝对定位和字体图标在布局中的应用。
摘要由CSDN通过智能技术生成

仿百度搜索框布局

   

/*搜索框*/

.search{margin: 150px auto 0;width:  700px;/*background: #ccc;*/text-align: center;}

.search img{width: 300px;height: 130px;}

.search form{margin: 10px auto;width: 644px;position: relative; }

.search input{border: none;float:left; }

.search input[type="text"]{width: 540px;height: 30px;border: 1px solid #3388FF;}

.search i{position: absolute;right: 110px;top: 6px;font-size: 20px;color: #ccc;}

.search input[type="button"]{width: 100px;height: 32px;color: #fff;background:#3388FF;}

任务

?不会了怎么办

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值