# 我可以判断某个设备是否是触控设备吗

**URL:** <https://meta.discourse.org/t/can-i-ascertain-if-something-is-a-touch-device/353076>\
**Category:** Development\
**Created:** [2025年二月19日 11:59 UTC](https://meta.discourse.org/t/can-i-ascertain-if-something-is-a-touch-device/353076 "2025-02-19T11:59:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2025年二月19日 11:59 UTC](https://meta.discourse.org/t/can-i-ascertain-if-something-is-a-touch-device/353076/1 "2025-02-19T11:59:54Z")

</div>

… 用 Javascript？

而且我不是指移动设备，而是指任何设备，例如触摸设备（如平板电脑），在这种设备上悬停没有意义。

或者我必须使用 CSS？

---

_[View the full topic](https://meta.discourse.org/t/can-i-ascertain-if-something-is-a-touch-device/353076)._
