如何在 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