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开发者_如何学C 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
and add display none to the href instead of div
#company{
display: none;
}
then with extjs call below line when you want to display link
Ext.get('company').show();
精彩评论