Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css里的 display: none 在某种情况下使用有问题 #26

Open
uxyheaven opened this issue May 20, 2015 · 2 comments
Open

css里的 display: none 在某种情况下使用有问题 #26

uxyheaven opened this issue May 20, 2015 · 2 comments

Comments

@uxyheaven
Copy link
Contributor

.hidden2
{
display: none;
background-color: #aaa;
}

直接在html用正常.如果用下面的方法在oc里添加进去,

$(@"#scan").ADD_CLASS( @"hidden2" );
[self.scan addCssStyleClass:@"hidden2"];

display: none无效
background-color: #aaa; 有效

@gavinkwoe
Copy link
Contributor

display: none 需要手动 relayout 一下,这个操作将更新你的界面布局。试试

@uxyheaven
Copy link
Contributor Author

[self relayout] 后 display: none 有效了, 但是我用
$(@"#scan").REMOVE_CLASS( @"hidden" );
显示的位置错了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants