![html搜索框怎么做](https://100zi.50zi.cn/uploadfile/img/14/611/d734e60395a57e365d1d3be259e65bb4.jpg)
web前端|html教程
html,搜索框
web前端-html教程
争霸车行游戏源码,vscode 快捷键设置,ubuntu配置asp,jar需要tomcat吗,爬虫市场重庆,php 获取内存地址,武汉seo推广商哪个好,jtbc网站内容管理系统,教务处 html 模板lzw
易语言模块源码,vscode支持安卓平板吗,ubuntu优盘路径,tomcat配置cer证书,爬虫数据金融,php会议室管理系统,电商SEO是免费流量吗lzw
html搜索框怎么做
仿养生网源码,ubuntu 打开睿频,爬虫防封系统,福州 php,新乡seo设计lzw
使用HTML做搜索框的方法:
1、首先新建一个div,id名为box,用来包裹搜索框;
2、然后在内部添加一个input标签和一个div标签,一个用来输入文字,一个充当按钮;
3、最后使用css为它们设计样式即可。
html教学
Examples#box{ width: 380px; margin: 30px auto; font-family: Microsoft YaHei; font-size: 14px; } input{ width: 260px; border: 1px solid #e2e2e2; height: 30px; float: left; background-image: url(images/search.jpg); background-repeat: no-repeat; background-size: 25px; background-position:5px center; padding:0 0 0 40px; } #search{ width: 78px; height: 32px; float: right; background: black; color: white; text-align: center; line-height: 32px; cursor: pointer; }
搜索
效果:
更多相关教学,请关注PHP中文网!