简体   繁体   English

如何在 html 和 css 上的图像链接轮廓上添加颜色?

[英]How can I put color on a Image link outline on html and css?

Hello guys this my example image all of the boxes are linked, and how can i put a outline color to each of them?大家好,这是我的示例图像,所有框都已链接,我如何为每个框添加轮廓颜色? the image is a example of what i want to do.图像是我想做的一个例子。 Thanks in advance if who ever answer it correct :)如果谁回答正确,请提前致谢:)

                    <div class="panel-heading">
                        1st Floor Map
                    </div>
                    <div class="panel-body">
                        <img src = "img/wetmarket.png" usemap= "#a46">
                        <map name="a46">
                            <area shape="rect" coords="19,120,95,180" alt="Sun" href="#1st_tenant" data-toggle="modal"  title = "Electric reader"  data-placement='top' class = "resetPrice">   
                        </map>
                        <!-- /.table-responsive -->
                    </div>

The jQuery maphilight plugin might be useful for what you are attempting to do. jQuery maphilight插件可能对您尝试执行的操作很有用。

http://davidlynch.org/projects/maphilight/docs/ http://davidlynch.org/projects/maphilight/docs/

It's designed for applying style when the imagemap links are hovered, but you might be able to make some changes to the JavaScript code if you want the "highlighting" visible all the time.它旨在在图像地图链接悬停时应用样式,但如果您希望“突出显示”始终可见,您可以对 JavaScript 代码进行一些更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM