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

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

WBOY
Release: 2016-06-24 11:34:37
Original
1461 people have browsed it

<!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>
Copy after login


回复讨论(解决方案)

<!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>
Copy after login

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

中间有文本节点

谢谢,我懂了

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