搜索框的代码怎么写

首先把搜索宽切片下来再CSS样式里面用为背景 CSS样式根据实际自己调整 .kuan input{ width:330px; height:60px; background:background:url(../img/kuan_01.jpg) no-repeat; border:none; float:left} .an input{ width:120px; height:60px; ba...
搜索框的代码怎么写
首先把搜索宽切片下来再CSS样式里面用为背景
<body>
<form action="" method="get">
<div class="kuan"><input name="" type="text" /></div><!--搜索框-->
<div class="an"><input name="" type="button" /></div><!--搜索按钮-->
</form>
</body>
CSS样式根据实际自己调整
<style type="text/css">
.kuan input{ width:330px; height:60px; background:background:url(../img/kuan_01.jpg) no-repeat; border:none; float:left}
.an input{ width:120px; height:60px; background:background:url(../img/an_02.jpg) no-repeat;border:none; float:left}
</style>2016-10-13
mengvlog 阅读 51 次 更新于 2025-12-18 07:02:25 我来答关注问题0
檬味博客在线解答立即免费咨询

CSS相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部