Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在不使用 JavaScript 的情况下在 Blogger Post 中检测移动设备?我们可以使用原语(即 cond=data:mobile)在博客模板中轻松完成,但我在帖子中找不到方法。
Blogger 条件标签仅适用于模板,不适用于帖子/小部件。
如果您想要移动网站中特定网址的内容,
使用条件 url 标签<b:if cond='data:blog.url == PUT_URL_HERE'>
<b:if cond='data:blog.url == PUT_URL_HERE'>
和
移动条件标签<b:if cond='data:blog.pageType == data:blog.isMobile'>
<b:if cond='data:blog.pageType == data:blog.isMobile'>
一起。