Python server 会使得 html 字体变小,这是什么情况?

2018-03-25 12:32:47 +08:00
 honmaple

相同的 html

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8"/>
    <title>Document</title>
  </head>
  <body>
    <h1 style="font-size:20px;">你你好你好你好你好你好你好你好好</h1>
  </body>
</html>

直接只用浏览器访问文件

使用 python -m http.server --bind 127.0.0.1 后访问

这是什么情况?

1597 次点击
所在节点    Python
7 条回复
binux
2018-03-25 12:35:03 +08:00
Ctrl-0
misaka19000
2018-03-25 12:36:53 +08:00
看一下 content-type
honmaple
2018-03-25 12:41:05 +08:00
@binux thank you, 困扰了很久了

@misaka19000 content-type 没有什么特别的信息
learnshare
2018-03-25 12:53:48 +08:00
@binux 可笑一整年
cnnblike
2018-03-25 12:56:08 +08:00
看了 1L 的回答,绝了,真的可以拿来笑一整年
ericls
2018-03-25 12:59:44 +08:00
@binux 哈哈哈哈哈
suit
2018-03-25 13:02:33 +08:00
chrome 下按 ctrl+0 还是会放大,检查下这个
![]( )

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/441186

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX