Image
Hình ảnh hiển thị trong thẻ.
Biểu diễn dưới dạng JSON |
{
"url": string,
"accessibilityText": string,
"height": integer,
"width": integer
} |
Trường |
url |
string
URL nguồn của hình ảnh. Hình ảnh có thể ở định dạng JPG, PNG và GIF (ảnh động và tĩnh). Ví dụ: https://www.agentx.com/logo.png . Bắt buộc.
|
accessibilityText |
string
Nội dung mô tả bằng văn bản của hình ảnh dùng để tăng khả năng tiếp cận, ví dụ: trình đọc màn hình. Bắt buộc.
|
height |
integer
Chiều cao của hình ảnh tính bằng pixel. Không bắt buộc.
|
width |
integer
Chiều rộng của hình ảnh tính bằng pixel. Không bắt buộc.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-12 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-12 UTC."],[[["Images are represented using JSON with fields for URL, accessibility text, height, and width."],["The `url` field specifies the image source and supports JPG, PNG, and GIF formats."],["`accessibilityText` provides a description for screen readers and is required for all images."],["Optional `height` and `width` fields can be used to specify the image dimensions in pixels."]]],["The provided content details the JSON representation of an image. It includes a `url` (string) specifying the image's source, which must be a JPG, PNG, or GIF. An `accessibilityText` (string) is required for screen readers. Optional fields include `height` and `width` (integers) to define the image dimensions in pixels. All fields are contained within a JSON object with the provided schema.\n"]]