← 返回首页
HTMLAreaElement: shape プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLAreaElement: shape プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.

shapeHTMLAreaElement インターフェイスのプロパティで、イメージマップ領域の形状を指定します。これは、 <area> 要素の shape 属性を反映します。

In this article

文字列です。 rect、circle、poly のいずれかです。

js
const areaElement = document.getElementById("imageMapArea"); console.log(areaElement.shape);

仕様書

Specification
HTML
# dom-area-shape

ブラウザーの互換性

Enable JavaScript to view this browser compatibility table.

関連情報