V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
honmaple
V2EX  ›  Python

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

  •  
  •   honmaple · 2018-03-25 12:32:47 +08:00 · 1582 次点击
    这是一个创建于 2196 天前的主题,其中的信息可能已经有所发展或是发生改变。

    相同的 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 后访问

    这是什么情况?

    binux
        1
    binux  
       2018-03-25 12:35:03 +08:00 via Android   ❤️ 3
    Ctrl-0
    misaka19000
        2
    misaka19000  
       2018-03-25 12:36:53 +08:00
    看一下 content-type
    honmaple
        3
    honmaple  
    OP
       2018-03-25 12:41:05 +08:00
    @binux thank you, 困扰了很久了

    @misaka19000 content-type 没有什么特别的信息
    learnshare
        4
    learnshare  
       2018-03-25 12:53:48 +08:00
    @binux 可笑一整年
    cnnblike
        5
    cnnblike  
       2018-03-25 12:56:08 +08:00
    看了 1L 的回答,绝了,真的可以拿来笑一整年
    ericls
        6
    ericls  
       2018-03-25 12:59:44 +08:00 via iPhone
    @binux 哈哈哈哈哈
    suit
        7
    suit  
       2018-03-25 13:02:33 +08:00
    chrome 下按 ctrl+0 还是会放大,检查下这个
    ![]( )
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2889 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 14:19 · PVG 22:19 · LAX 07:19 · JFK 10:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.