我可以看到设计时的变化,但是当页面运行时控件没有显示...我在选项卡面板中有三个这样的标签和其他控件...
<a href="#" id="A1" class="small-heading">Change Password</a>
CSS:
.small-heading {
background: url(../../Images1/small-heading.gif) no-repeat;
width: 105px;
height: 20px;
float: left;
font-size: 0.9em;
line-height: 18px;
font-weight: normal;
color: #7a7a7a;
overflow: hidden;
padding: 0 0 0 3px;
margin: 0 0 0 -127px;
}
可能是什么问题?
最佳答案
我不太确定,因为您只有部分代码。尝试发布完整的代码或简化的示例。
我想是因为你使用了 overflow:hidden;
和 margin-left: -127px;
尝试删除 overflow:hidden;
编辑*
此外,您不能为标签设置宽度和高度,因为默认情况下 a 是内联的。这也可能会影响背景图像..
尝试放置 display:block
希望它能解决问题
谢谢
关于asp.net - 控件在运行时不显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15494353/