English 中文(简体)
不同浏览器的图像映像坐标
原标题:Image map coordinates for different browsers

我正在试图创建一张图像映像图, 我在图像坐标上定义与其他页面链接的坐标。 现在我面临的问题是, 坐标的位置不是相对的 。

如果图像在不同的浏览器上,或者屏幕大小不同,则坐标不会被保存。我的意思是,图像中某个特定位置的链接现在位于图像的其他位置。

任何人都可以提供一条代码 在那里我可以有一些相对位置 即使浏览器大小或图像大小 也会随之改变坐标位置

我尝试使用像 COORDSCALE “ 50% 50% 50% ” 这样的用户百分数标签, 但对于“ 区域” 标签来说似乎是错误的属性。 即使这个“ COORDSCALE” = “ ABSOLUTE REOLING” 也行不通 。

首先,这些是正确属性吗?是否有相对定位的可能性?任何 CSS 或 Javascript 代码都会很好。

问题回答

将图像用具有相对位置的 div 折行。 里面使用绝对定位元素来模仿图像映射应该做的同样的事情 。

Google“CSS图像地图”,





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签