开发者

How to show a link with Extjs 4?

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜