【发布时间】:2012-05-23 20:54:32
【问题描述】:
所以我有以下数据,但 div 不可见。
html:
<div id="divTest" class="cTest">
others divs, and html in here
</div>
css:
.cTest {
position: absolute;
top: 60px;
left: 100px;
right: 100px;
bottom: 25px;
min-height: 500px;
min-width: 500px;
overflow: hidden;
background-color: #FF0000;
border: 0px solid #000000;
font-family: arial;
font-size: 10pt;
font-weight: normal;
margin: 0px;
padding: 5px;
cursor: default;
z-index: 10;
visibility: hidden;
-moz-box-shadow: 0px 0px 5px 5px #777777;
-webkit-box-shadow: 0px 0px 5px 5px #777777;
box-shadow: 0px 0px 5px 5px #777777;
}
当我点击一个按钮时js运行:
$("#divTest").fadeIn(600);
我做错了吗?
【问题讨论】:
-
问题是
visibility: hidden。可以在this question 接受的答案中找到解决方案。 -
谢谢,应该搜索得更好!