如何插入HTML中的链接行动的形象? asp.net的MVC [英] how to insert image in html action link? asp.net mvc

查看:338
本文介绍了如何插入HTML中的链接行动的形象? asp.net的MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对从HTML操作链接我webproject导航等众多环节。
他们是丑陋的下划线。我想插入一些图像的名称或风格的动作链接的发挥。
是这可能吗?那怎么办?

I have navigation and many link on my webproject from html action links. They are ugly with underline. I would like to insert some image with name or play with styles of action link. Is it possible? How to do that?

感谢和照顾,
Ragims

Thanks and take care, Ragims

推荐答案

您可以使用CSS来删除下划线或地方和backgroundImage,
否则,你也可以只创建一个像这样的链接:

You could use css to remove the underlines or place a backgroundimage, otherwise you could also just create the link like so:

<a href="<%: Url.Action("Action", "Controller")%>"><img src="yourimg.jpg" /></a>

这篇关于如何插入HTML中的链接行动的形象? asp.net的MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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