gpt4 book ai didi

asp.net-mvc-3 - Chrome 和 Firefox 不显示 anchor 标记

转载 作者:行者123 更新时间:2023-11-28 13:37:59 25 4
gpt4 key购买 nike

possible duplicate

我也遇到过同样的情况。

当图片和 anchor 标签嵌套在 div 标签中时,当鼠标悬停在 firefox 和 chrome 上时 anchor 标签不会显示,但在 IE 中可以。

我的 .cshtml 页面中有很多 div 标签。 div 中的一些 anchor 标记在 FF 和 Chrome 中工作

我的应用程序是一个 MVC3 应用程序。

这是我的代码:

<div class="mainDiv">
<div class="CssDivs">
<a href="#">
<img src="@Url.Content("~/Content/images/home.gif")" alt="home" border="0" /></a>
</div>
</div>

CSS 是:

.CssDivs
{
float: left;
padding: 5px;
}
.mainDiv
{
text-align: center;
font-size: 28px;
color: #FFFFFF;
font-family: Verdana, Geneva, sans-serif;
font-weight: normal;
float: left;
padding: 200px 13px 7px 13px;
position: absolute;
}

如果有人有解决方案,请发布。

这是我的 jsfiddle:http://jsfiddle.net/Bzzt6/这个 fiddle 可以工作,但在通过 Visual Studio 2010 执行时无法工作。可能是什么问题?

编辑:我已经在我的 css 中尝试了 position: relative;,但没有任何区别。

谢谢,

最佳答案

anchor 标签不包含href,它有属性名

检查这个http://jsfiddle.net/psQvg/

它在 Chrome 和 FF 上都运行良好

尝试检查你的javascript是否启用

关于asp.net-mvc-3 - Chrome 和 Firefox 不显示 anchor 标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12740951/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com