2012-04-13 29 views
2

如果我创建一个HTML表是这样的:HTML Table始终处于新行?

text text text 
    <table border='0'> 
    <TR> 
     Table Item 
    </TR> 
    </table> 

这是始终将产生一个新行)--------------->

text text text 
Table Item 

没有机会产生像这样的(所以没有新的生产线?)--------------------->

tex text text Table Item 

回答

7
table{ 
display:inline-block 
} 

可以帮你我想。 也将于帮你 sample

+0

谢谢...只有css解决方案没有机会 – czupe 2012-04-13 10:17:07

+0

@czupe couldnot让你 – freebird 2012-04-13 10:19:58

+0

所以我可以这样做吗?:

...? (对不起,最后一个,想编辑我的评论,但时间已到(5分钟)...) – czupe2012-04-13 10:25:53

6

设置tabledisplayinline-block

+1

而且不要忘了使用

内。 – 2012-04-13 10:15:12

+0

有史以来最快的答案:)欣赏它。 – czupe 2012-04-13 10:16:26