使用 shape 屬性在 HTML 中設定區域的形狀。您可以嘗試執行以下程式碼來實作shape屬性 -
<!DOCTYPE html> <html> <head> <title>HTML shape attribute</title> </head> <body> <img src = "/images/html.gif" alt = "HTML Map" border = "0" usemap = "#html"/> <!-- Create Mappings --> <map name = "html"> <area shape = "circle" coords = "154,150,59" href = "about/about_team.htm" alt = "Team" target = "_self" /> </map> </body> </html>
以上是設定HTML中區域的形狀的詳細內容。更多資訊請關注PHP中文網其他相關文章!