如何检测移动浏览器(PHP / Javascript),然后更改图像/文本?

Using wordpress for my new site, and I am putting together the content of my pages. But I'm struggling to come up with a way to detect a mobile browser, and then with the result, change the visibility of certain elements (text / images) on the page depending on whether it is being viewed from a mobile device or a computer.

Eg. If onmobile=true, , else .

Thanks in advance :)

查看全部
douweiluo0600
douweiluo0600
2015/02/07 14:46
  • wordpress
  • php
  • html
  • javascript
  • jquery
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复