Jafee
V2EX  ›  问与答

V2EX 的前端貌似不是响应式的,那么它是如何判断 PC 端和移动端的访问呢?

  •  
  •   Jafee · Oct 30, 2015 · 3399 views
    This topic created in 3858 days ago, the information mentioned may be changed or developed.

    如果是使用 nginx 判断的,有没有特别详细的配置细节?

    查了查,没有找到特别靠谱的解决方案。希望大家可以给些指点。

    9 replies    2015-12-07 20:45:04 +08:00
    Biwood
        1
    Biwood  
       Oct 30, 2015
    难道不是根据请求头部里的 user-agent 值来判断
    9hills
        2
    9hills  
       Oct 30, 2015   ❤️ 1
    handleyan
        3
    handleyan  
       Oct 30, 2015
    根据屏幕宽度,做自适应
    dant
        4
    dant  
       Oct 30, 2015
    User-Agent
    bibizhang
        5
    bibizhang  
       Oct 30, 2015
    是这样的
    HentaiMew
        6
    HentaiMew  
       Oct 30, 2015
    然而 V2EX 是根据 ua 不是根据屏幕宽度的。
    Jafee
        7
    Jafee  
    OP
       Nov 2, 2015
    @9hills 谢谢谢谢!
    ldehai
        8
    ldehai  
       Dec 7, 2015
    Jafee
        9
    Jafee  
    OP
       Dec 7, 2015
    @ldehai 谢谢!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2832 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 14:54 · PVG 22:54 · LAX 07:54 · JFK 10:54
    ♥ Do have faith in what you're doing.