在html中将鼠标悬停在它上面的下划线代码 [英] code for link underlined when mouse over it in html

查看:465
本文介绍了在html中将鼠标悬停在它上面的下划线代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个这样的HTML代码用于链接。

a href =/ newsample / HighBounceBall.aspxtitle =以66.00美元的价格买一整箱24> 高弹跳球


当鼠标悬停在链接上时,
i必须使该链接加下划线

请帮助



谢谢

解决方案

66.00> 高弹跳球


当鼠标悬停在链接上时,
i必须使该链接加下划线

请帮助



谢谢


我想我有解决方案...



html页面中的锚标签没有可用的样式..

为此你需要添加css类来定义这个东西。



假设您写道:

 <   a     href   =  / newsample / HighBounceBall.aspx    title   = 购买一整箱24为


66.00 > 高反弹球< span class =code-keyword>< / a >

您可以将类添加到< a > 标记,例如< a href = class = link >





然后在CSS文件中定义名为.link的类,如下所示:

 link  
{
text-decoration none;
}

link:hover
{
text-装饰 下划线;
}



你的工作已经完成....



谢谢...

如果我错了,请指导我


hi,
I have an HTML code like this for a link.
"a href="/newsample/HighBounceBall.aspx" title="Buy a full box of 24 for $66.00 ">High Bounce Ball"

i have to make that link underlined when mouse over the link
please help

thank you

解决方案

66.00 ">High Bounce Ball"

i have to make that link underlined when mouse over the link
please help

thank you


I think I have solution for your task...

there is no style available for anchor tag in html page..
for this you need to add css class to define this thing.

suppose you wrote:

<a href="/newsample/HighBounceBall.aspx" title="Buy a full box of 24 for


66.00 ">High Bounce Ball</a> you can add class to <a> tag like <a href="" class="link">



then define class named .link in CSS file as follows:

.link
{
       text-decoration:none;
}

.link:hover
{
       text-decoration:underline;
}


and your work is done....

Thank you...
Guide me if I am Wrong


这篇关于在html中将鼠标悬停在它上面的下划线代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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