如何使用 Extjs 4 显示链接?
这是我设置为显示的 href,
<a href="#" target="_self" alt="" id="company"><div></div></a>
#company div {
position: relative;
width: 450px;
height: 50px;
background-image: url(../images/logo.gif);
background-repeat: no-repeat;
display: none;
}
我想在加载应用程序后使用 extjs 显示此内容。
所以我尝试这样的事情,但似乎不知道
var el = Ext.get('company');
el.show();
如何在需要时展示它?
问候
已解决:通过从中删除display: none;并添加display: none;到
#company{
display: none;
}
This is the href i have set to display none
<a href="#" target="_self" alt="" id="company"><div></div></a>
#company div {
position: relative;
width: 450px;
height: 50px;
background-image: url(../images/logo.gif);
background-repeat: no-repeat;
display: none;
}
i want to show this with extjs once the application is loaded.
so i try something like this but doesnt seems to work
var el = Ext.get('company');
el.show();
any idea how to show this once needed?
Regards
solved: by removing display: none; from this and added display: none; to
#company{
display: none;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
去除显示:无;从当前的CSS
并将display none添加到href而不是div,
然后当你想显示链接时使用extjs调用下面的行
Remove display: none; from current css
and add display none to the href instead of div
then with extjs call below line when you want to display link