# 设备类型

你可以通过使用无头浏览器来定制其模拟不同设备类型的方式 `?p_device` 参数。这使你能够模拟所选设备类型（桌面、移动设备、平板电脑）的指纹，这对于抓取响应式布局、移动端特定内容，或与设备相关的行为（如 CAPTCHA 或 UI 元素）特别有用。

可用 `?p_device` 参数值：

* `desktop` （默认）– 模拟带有完整视口和桌面 User-Agent 字符串的标准桌面浏览器。
* `mobile` – 通过更小的屏幕分辨率、触控能力和移动 User-Agent 来模拟智能手机体验。
* `tablet` – 模拟平板设备，适合抓取中等尺寸布局以及混合移动/平板界面（仅适用于 Chrome）。

例如：

```
wss://username:password@ubc.oxylabs.io?p_device=mobile
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.oxylabs.io/products/cn/headless-browser/features/device-type.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
