我想展示几行数据,每行都有一个标题和同一行的一些数据.这个问题肯定已经在SO(即
How to style dt and dd so they are on the same line?)上得到了回答,然而,它似乎对我没有用.以下似乎有效,除非DD没有修复它的内容.我对它感兴趣IE7.我这样做是怎么回事?谢谢
Untitleddl {width: 395px; font-size:12px}
dd,dt {padding-top:5px;padding-bottom:5px;}
dt {float:left; padding-right: 5px; font-weight: bolder;}
/* dd {padding-left: 5px;} Does not work */
-
DT Element 1:
- DD Elem 1 DT Second Element:
- DD Element Two DT Elem 3: DT Element 4:
- DD Elem 4 DT Fifth Element:
- DT Elem 6:
- DD Element Six