开发者

How to show a link with Extjs 4?

开发者 https://www.devze.com 2023-03-30 21:10 出处:网络
This is the href i have set to display none <a href=\"#\" target=\"_self\" alt=\"\" id=\"company\"><div></div></a>

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

精彩评论

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