惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Security Affairs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
P
Palo Alto Networks Blog
GbyAI
GbyAI
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
Blog — PlanetScale
Blog — PlanetScale
S
Schneier on Security
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
雷峰网
雷峰网
T
Tenable Blog
人人都是产品经理
人人都是产品经理
T
Tor Project blog
C
Cyber Attacks, Cyber Crime and Cyber Security
AWS News Blog
AWS News Blog
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
Scott Helme
Scott Helme
SecWiki News
SecWiki News
C
CERT Recently Published Vulnerability Notes
Recorded Future
Recorded Future
I
InfoQ
Security Archives - TechRepublic
Security Archives - TechRepublic
Help Net Security
Help Net Security
Cloudbric
Cloudbric
C
Check Point Blog
Engineering at Meta
Engineering at Meta
TaoSecurity Blog
TaoSecurity Blog
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
N
News and Events Feed by Topic
云风的 BLOG
云风的 BLOG
MyScale Blog
MyScale Blog
腾讯CDC
量子位
Application and Cybersecurity Blog
Application and Cybersecurity Blog
K
Kaspersky official blog
Vercel News
Vercel News
F
Full Disclosure
T
Troy Hunt's Blog
Forbes - Security
Forbes - Security
S
Security @ Cisco Blogs

犊犊的小棚棚

精装本 vs 平装本 – 犊犊的小棚棚 理发 – 犊犊的小棚棚 Exercise – 犊犊的小棚棚 救救顿号!——与《标点符号用法》商榷 – 犊犊的小棚棚 控枪——美国政治的斗争与谎言 – 犊犊的小棚棚 塞德里克·维拉尼教授访谈录 – 犊犊的小棚棚 脱 – 犊犊的小棚棚 遇到了BAD_SYSTEM_CONFIG_INFO咋整 – 犊犊的小棚棚 乐 – 犊犊的小棚棚 理发 – 犊犊的小棚棚 Exercise – 犊犊的小棚棚 引发奇怪的空白 – 犊犊的小棚棚 控枪——美国政治的斗争与谎言 – 犊犊的小棚棚 塞德里克·维拉尼教授访谈录 – 犊犊的小棚棚 脱 – 犊犊的小棚棚 遇到了BAD_SYSTEM_CONFIG_INFO咋整 – 犊犊的小棚棚 乐 – 犊犊的小棚棚 精装本 vs 平装本 – 犊犊的小棚棚 救救顿号!——与《标点符号用法》商榷 – 犊犊的小棚棚
引发奇怪的空白 – 犊犊的小棚棚
Published by 犊犊 View all posts by 犊犊 · 2017-08-30 · via 犊犊的小棚棚

&#65279 引发奇怪的空白

使用 Visual studio 编辑 html 时,发现页面上会出现奇怪的、CSS 无法消除的空白。在折腾了几个小时后,我发现浏览器查看元素时会有一些“&#65279”。

这些字符就是所谓的字节顺序标记(byte order marks,BOMs),这个字符是“零宽度不换行空格”。这种东西在 VS 编辑器中完全不可见(在 Word 里面打开显示隐藏标记的话会显示)。如果在 Word 里面替换的话,可以用 ^u8520 替换掉。

Visual Studio 在保存 UTF-8 文件时默认是 “with signature” 的,这就会保存 BOM 字符。

解决方法就是在 VS 中保存时选择编码 “UTF-8 without signature”。