如何在 HTML 中的影像貼圖中設定區域座標?
要在影像貼圖中設定區域的座標,請在 HTML中使用 cords 屬性來設定 HTML 中的影像貼圖區域座標。
示例
可以嘗試執行以下程式碼來實現 cords 屬性 −
<!DOCTYPE html> <html> <head> <title>HTML coords attribute</title> </head> <body> <img src = "/images/html.gif" alt = "HTML Map" border = "0" usemap = "#html"/> <map name = "html"> <area shape = "circle" coords = "154,150,59" href = "about/about_team.htm" alt = "Team" target = "_self" /> </map> </body> </html>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP