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

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

WBOY
Release: 2016-06-24 11:29:43
Original
1247 people have browsed it

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