css - 调整 HTML map 图像的大小

在一个页面仅由使用 html 映射的单个图像和多个链接组成的小型网站中,我想调整图像(较小的图像)的大小,但是调整所有图像的大小并更改所有链接坐标是非常痛苦的.

<div style="text-align:center; width:586px; margin-left:auto; margin-right:auto;">
<img id="Image-Maps_5201110040649307" src="http://site.com/ui_prototype/login.png" usemap="#Image-Maps_5201110040649307" border="0" width="586" height="1162" alt="" />
<map id="_Image-Maps_5201110040649307" name="Image-Maps_5201110040649307">
<area shape="rect" coords="59,550,297,614" href="http://site.com/ui_prototype/main_menu.html" alt="" title=""    />
</map>
</div>

解决问题的更好方案是什么?

谢谢

最佳答案

您可以缩放/缩放 div,

示例(半码):

style="zoom:.5;-o-transform: scale(.5);-moz-transform: scale(.5)"

关于css - 调整 HTML map 图像的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7665406/

相关文章:

ruby-on-rails - Rspec测试,关于顺序和之前(:all)

image - 修改或添加 dicom 标签

opengl - 可在 OpenGL 中表示的曲线

css - 如何并排显示两个高度为 100% 的 Div?

performance - @font-face unicode-range 属性

haskell - 与 Word8 和 Int 相关的类型错误

vim - 你如何在 Vim 中删除除特定模式之外的所有内容?

asp.net - Rad Ajax 加载面板未显示在 asp.net 页面的回发中

wpf - 自动将文本框中的第一个字母大写

django - 更改各种对象的 django-tinymce 内容 css