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
zhangjingqiang
V2EX  ›  Python

问个很业余的问题,Python官网的“shortcut icon”藏在哪了?

  •  
  •   zhangjingqiang · 2012-03-18 22:38:26 +08:00 · 4540 次点击
    这是一个创建于 4415 天前的主题,其中的信息可能已经有所发展或是发生改变。
    看Python的官网首页源码,并没有看到指定“shortcut icon”的“image/x-icon”type的地方,在哪体现出来的呢?
    4 条回复    1970-01-01 08:00:00 +08:00
    zythum
        1
    zythum  
       2012-03-18 22:41:41 +08:00
    这个可以在服务器上指定的,不一定要写在页面里。
    lululau
        2
    lululau  
       2012-03-18 22:45:09 +08:00
    如果页面中没有指定的话,浏览器会到页面的目录下找"favicon.ico",如果没有找到就到上一级目录找,直到根目录下。一般的做法都是把favicon放在根目录下就行了

    http://www.python.org/favicon.ico
    lerry
        3
    lerry  
       2012-03-18 22:49:26 +08:00
    不指定的话,浏览器会自动请求http://yourdomain.com/favicon.ico
    zhangjingqiang
        4
    zhangjingqiang  
    OP
       2012-03-19 10:20:49 +08:00
    原来如此,谢谢各位。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1013 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:49 · PVG 02:49 · LAX 11:49 · JFK 14:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.