如何删除图像下的链接(但保持文本)? [英] How to remove link below image (but keep on text)?

查看:90
本文介绍了如何删除图像下的链接(但保持文本)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与文字和图像有链接。我不希望图像下面有下划线,但我确实希望文本有下划线。无论如何不支持这些,而不将它们分解为两个单独的链接?这里是一个示例图片:



解决方案

$ b $不能将链接分成两部分。 b

另一种方法是在包含文本的元素上放置 border-bottom:1px solid#000 ,但这不会表现相同是一个本地的A元素,有悬停,活跃和访问状态 - 至少不是没有javascript的干预。


I had a link with text and an image. I don't want the image to have an underline under it but I do want the text to have an underline. Is there anyway to support this without breaking these down into two seperate links? Here is an example picture:

解决方案

No, there is no way to achieve that without splitting the link into two parts.

The alternative is to put border-bottom: 1px solid #000 on to the element containing the text, however this will not behave in the same was as a native A element, with hover, active and visited states - at least not without the intervention of javascript.

这篇关于如何删除图像下的链接(但保持文本)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆