html - map 标签在 HTML 中不起作用

标签 html css

对于我正在制作的网站,映射代码不起作用,链接仍然无法点击。我不确定这是否是 CSS/HTML 组合的问题,但我的 HTML 部分代码如下:

<div class="subscribe">
    <h2>Follow Us : </h2>
    <div class="contact-form">
        <img src="images/social.png" usemap="#follow">
        <map name="follow">
            <area shape="rect" coords="648,336,1000,600" href="www.instagram.com/quadrotian" target="_blank" alt="Instagram">
            <area shape="circle" coords="1337,336,275" href="www.facebook.com/Quadrotian" alt="Facebook">
            <area shape="circle" coords="2045,336,275" href="#" target="_blank" alt="Pinterest">
            <area shape="circle" coords="2783,336,275" href="#" alt="Twitter">
            <area shape="circle" coords="3491,336,275" href="#" alt="Google Plus">
            <area shape="circle" coords="4206,336,275" href="#" alt="LinkedIn">
        </map>
    </div>
</div>

我以前以类似的方式使用过 map ,但这次没有用。

最佳答案

您的 map 坐标、形状及其尺寸太大了。我将它们的尺寸缩小了 10 倍,然后看看它们还有多大。这是你的一个圈子:

enter image description here

关于html - map 标签在 HTML 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41522148/

相关文章:

html - 嵌入式YouTube视频无法加载

javascript - 如何更改 "HTML"样式

html - 基于渐变色标为许多 css 类定义颜色

javascript - 我需要javascript吗?在 PHP 中?

html - CSS 不适用于通过内部链接访问 id 标签的页面

css - Safari 字体粗细问题,文字太粗

html - 为什么这些行内 block 元素会产生额外的宽度?

html - 在可变大小的图像上垂直和水平对齐文本

html - 图像网格 : on hover all dim but the one with the mouse over it.

javascript - JQuery fadeIn顺序不同元素类型的子元素