gpt4 book ai didi

html - 为什么 CSS3 动画在我的 ASP.net 网站上不起作用

转载 作者:可可西里 更新时间:2023-11-01 13:07:36 25 4
gpt4 key购买 nike

我有一个 ASP.net 网站,其中包含以下...

HTML:

<div style="width: 99%; margin: 0; padding: 0; text-align: left; overflow: hidden;">
<div id="sample3" lang="is" class="sample3">

<figure>
<img src="../theImages/imgPra.png" width="160" height="160" alt="Specialty Profile" />
<figcaption>Specialty Profile</figcaption>
</figure>

<!--end sample3--></div>
</div>

CSS:

.sample3 figure {
width: 200px;
height: 200px;
overflow: hidden;
position: relative;
background: url('../theImages/preview4.jpg') fixed no-repeat;
}

.sample3 figcaption {
position: absolute;
display: block;
width: 350px;
height: 50px;
left: 110px;
bottom: -110px;
text-align: center;
color: #fff;
background-color: rgba(26,54,59,0.8);
border: 3px solid rgba(62,116,126,0.6);
line-height: 50px;
-moz-box-shadow: rgba(0,0,0,.5) 0 2px 8px;
-webkit-box-shadow: rgba(0,0,0,.5) 0 2px 8px;
box-shadow: rgba(0,0,0,.5) 0 2px 8px;
-moz-transform:rotate(-45deg);
-webkit-transform:rotate(-45deg);
-o-transform:rotate(-45deg);
transform:rotate(-45deg);
-moz-transition: bottom .5s ease-out, left .5s ease-out;
-webkit-transition: bottom .5s ease-out, left .5s ease-out;
-o-transition: bottom .5s ease-out, left .5s ease-out;
transition: bottom .5s ease-out, left .5s ease-out;
}

.sample3 figure:hover figcaption {
left: -20px;
bottom: 20px;
}

JSFiddle:http://jsfiddle.net/vas1watw/

它在常规网页中运行良好,但当我将它添加到我的 .net 网站时,功能区显示时没有动画。

我该如何解决这个问题。

Debug模式:

enter image description here

最佳答案

你在使用网站管理员吗?如果你使用它,请将 css 放在网站管理员上

关于html - 为什么 CSS3 动画在我的 ASP.net 网站上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30486381/

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