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

cell中的包裹元素为什么使用span? #8

Open
limodou opened this issue Mar 7, 2013 · 2 comments
Open

cell中的包裹元素为什么使用span? #8

limodou opened this issue Mar 7, 2013 · 2 comments

Comments

@limodou
Copy link
Contributor

limodou commented Mar 7, 2013

                    trHtml.push('"><span class="');
                    if(opts.nowrap){
                        trHtml.push('nowrap');
                    }
                    trHtml.push('">');

这里每个单元格都使用 span 来包裹内容,不过个人感觉使用 div 是不是会更好一些?

@lidatui
Copy link
Owner

lidatui commented Mar 7, 2013

我觉得这个看个人理解吧,我认为这个表格里的文本应该算是inline的而不是block的

@limodou
Copy link
Contributor Author

limodou commented Mar 7, 2013

但是表格中有可能放任意的东西,div感觉更好一些。

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