Home  >  Article  >  Web Front-end  >  去除html的回车键中的空格_html/css_WEB-ITnose

去除html的回车键中的空格_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:29:431202browse

//html中的回车键会生产空格,因为各个浏览器的默认不一致,如果要空格的话尽量用转移符&nbsp来代替<br /><!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>Document</title><style type="text/css">p{ font-size: 0px;}span{ font-size: 14px;}</style></head><body><p><span>首页</span><span>首页</span><span>首页</span><span>首页</span></p></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