【发布时间】:2015-04-19 20:58:29
【问题描述】:
我使用 Photoshop 在背景图片上添加了一个徽标。我设置了背景图像,它是响应式的。我设置了一个图像映射以将徽标用作主页链接。我在该站点的其他两个页面上运行良好,但是由于背景图像的设置方式,此页面有所不同。我想我可以通过使用透明图像和 usemap 来玩个把戏。不工作。当我将鼠标悬停在图像地图上时,我能够看到手,但那里没有徽标。网址是http://jandswebsitedesigns.com/test/index.html。左上角的徽标示例是http://jandswebsitedesigns.com/test/im-new-here.html。我在 im-new-here 页面上遇到了类似的问题。位于图像上部顶部的“顶栏”div(透明)覆盖了可点击区域。塞缪尔回应,我添加了 div#top-bar { height: 0px;并且它修复了它。工作得很好,但同样的修复在这里不起作用。
<style>
body {
background: url(images/cd-background-1.png) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
position: relative;
min-height: 100%;
z-index: 1; }
</style>
<div style="text-align: center; height: 800px;">
<img src="images/trans.png" usemap="#logomap">
<map name="logomap">
<area shape="poly" coords="11,2,430,3,432,307,3,320"
style="outline:none;" href="index.html" alt="main page">
</map>
</div>
【问题讨论】:
标签: javascript jquery html css image