V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Jafee
V2EX  ›  问与答

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

  •  
  •   Jafee · Oct 30, 2015 · 3349 views
    This topic created in 3835 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   ·   2451 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 04:59 · PVG 12:59 · LAX 21:59 · JFK 00:59
    ♥ Do have faith in what you're doing.