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

ATTR问题及其他 #31

Open
kakuchichi opened this issue Jul 1, 2015 · 0 comments
Open

ATTR问题及其他 #31

kakuchichi opened this issue Jul 1, 2015 · 0 comments

Comments

@kakuchichi
Copy link

1.ATTR问题

html部分代码是这样的

 <UICollectionView name="sections" id="list" class="list" columns="1" is-vertical>
    <UICollectionViewCell name="section" class="cell" is-row>
        <div class="title">
            <div class="title-name" name="name">Name</div>
            <div class="title-time" name="time">time</div>
        </div>
    </UICollectionViewCell>     
</UICollectionView>
<style>
        .list {
            display: block;
            width: 100%;
            height: 100%;
            z-index: 1;
            background-color: #eaeaea;
            margin-top: 2px;
        }
        .cell {
            height: 80px;
            color: #333;
            background-color: #eee;
            border-bottom: 1px;
            border-bottom-color: #ccc;
            border-bottom-style: solid;
        }
        .title {
            width: 100%;
            height: 100%;
            float: right;
        }
        .title-name {
            padding-top: 15px;
            padding-left: 30px;
            color: #333;
            font-size: 16px;
        }
        .title-time {
            padding-left: 30px;
            color: #aaa;
            font-size: 13px;
        }
</style>

对list使用ATTR后

$(@"#list").ATTR(@"display",@"none");
$(@"#list").ATTR(@"display",@"block");

再让list显示后,list里面文字部分的字号和字体颜色都会发生变化,字体会变为一样大,颜色黑色。

2.字体问题

字体设置font-family无效。

3.实机运行问题

实机上运行需要注释掉。

//DEBUG_RENDERER_DOM( self );

4.UICollectionViewCell问题

iOS7系统下 UICollectionViewCell 不显示。

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

1 participant