Skip to content

通过 CSS 区分桌面端和移动端 #115

@Dream4ever

Description

@Dream4ever

需求描述

之前在网页中检查用户浏览器是桌面端还是移动端时,用的都是 JS 检查 useragent 的方式。

最近在想有没有方法能够通过 CSS 来区分,于是研究了一下:

Metadata

Metadata

Assignees

No one assigned

    Labels

    CSSThe world is beautiful

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions