[英]How to show a link with Extjs 4?
This is the href i have set to display none 这是我已设置为不显示的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;
}
i want to show this with extjs once the application is loaded. 一旦加载应用程序,我想用extjs展示它。
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;
}
Remove display: none; 删除显示:无; from current css
从当前的CSS
and add display none to the href instead of div 并将显示内容都不添加到href而不是div
#company{
display: none;
}
then with extjs call below line when you want to display link 然后在要显示链接时使用extjs调用下面的行
Ext.get('company').show();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.