发布网友
共2个回答
热心网友
html部分:
<div class="a"><input type="text" class="a1" /><input type="button" value="搜索" class="a2"></div>
css部分
.a{width:300px; height:30px; background:url(背景图片地址) no-repeat;}
.a1{width:250px;heght:24px; padding:3px; background:none; border:0;}
.a2{width:50px; height:30px; background:none; border:0;}
背景图片应该会做吧!不会再追问!
热心网友
一个文本框跟一个按钮连在一起,
文本框跟按钮float一块就可以了。
按钮可以定义个类 写background蓝色背景图片。
或者把按钮浮在文本框右边也可以。
热心网友
html部分:
<div class="a"><input type="text" class="a1" /><input type="button" value="搜索" class="a2"></div>
css部分
.a{width:300px; height:30px; background:url(背景图片地址) no-repeat;}
.a1{width:250px;heght:24px; padding:3px; background:none; border:0;}
.a2{width:50px; height:30px; background:none; border:0;}
背景图片应该会做吧!不会再追问!
热心网友
一个文本框跟一个按钮连在一起,
文本框跟按钮float一块就可以了。
按钮可以定义个类 写background蓝色背景图片。
或者把按钮浮在文本框右边也可以。