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

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

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

<!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>

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

中间有文本节点

谢谢,我懂了

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn