Deprecated: imwpcache\f884414bce24ee67f\f73723ec7b1919fa5::__construct(): Implicitly marking parameter $YECBGYFECGEAFWHA as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/www.chuangxiangniao.com/wp-content/plugins/imwpcache-dist/build/f884414bce24ee67ff73723ec7b1919fa5.php on line 2

Deprecated: imwpcache\f884414bce24ee67f\f73723ec7b1919fa5::__construct(): Implicitly marking parameter $BBWFDDBHHYHDXXAB as nullable is deprecated, the explicit nullable type must be used instead in /www/wwwroot/www.chuangxiangniao.com/wp-content/plugins/imwpcache-dist/build/f884414bce24ee67ff73723ec7b1919fa5.php on line 2
html搜索框怎么做_创想鸟

html搜索框怎么做

html搜索框怎么做

html搜索框怎么做

使用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;    }     

效果:

3bf33a87e950352a0b7099235a43fbf2b2118b8c.png

更多相关教程,请关注PHP中文网!

以上就是html搜索框怎么做的详细内容,更多请关注创想鸟其它相关文章!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1548346.html

赞 (0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
关于html中area标签的用法详解
上一篇 2025年12月21日 19:54:25
html中标签该如何使用
下一篇 2025年12月21日 19:54:35

相关推荐

发表回复

登录后才能评论
关注微信