Home  >  Article  >  Web Front-end  >  没有外边距,为什么这两个按钮不是紧挨着的?_html/css_WEB-ITnose

没有外边距,为什么这两个按钮不是紧挨着的?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:34:371383browse

<!doctype html><html><head><meta charset="utf-8"><title>无标题文档</title><style>input{	padding:0px;	border:0px;	margin:0px;	width:100px;	height:100px;}</style></head><body><input type="button" id="but1"><input type="button" id="but2"></div></body></html>


回复讨论(解决方案)

<!doctype html><html><head><meta charset="utf-8"><title>无标题文档</title><style>input{    padding:0px;    border:0px;    margin:0px;    width:100px;    height:100px;	}</style></head> <body><input type="button" id="but1"><input type="button" id="but2"> </div></body></html>

按照你说的成功了,但是原因是什么?能不能详细说一下,谢谢

中间有文本节点

谢谢,我懂了

Statement:
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