如何让input之间无空隙_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:38:05
Original
1594 people have browsed it

自己在做一张网站首页的时候,遇到了一个百思不得其解的问题,就是如何让相邻的input之间没有空隙?

html代码

<div class="search">    <input class="search-text" type="text">    <input class="search-btn" type="button" value="搜 索"></div>
Copy after login

css代码

.header-search .search .search-text {  width: 360px;  height: 35px;}.header-search .search .search-btn {  width: 69px;  height: 35px;  background: #ff8c00;}
Copy after login

页面的实际效果

文本框和按钮框之间的空隙在没有解决之前尝试了一些解决方法:

 input {     margin: 0;     padding: 0;      border: 0;    }   
Copy after login

这个方法.....呵呵然并卵居然没效果!!

最后通过http://www.ft-love.com/fix-input-space-input.html 这篇文章获得解决方案:  要让两个input之间没有空隙,则要让两个input在同一行,不能使用换行

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template