首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何将DT和dd的样式设计成同一行?

如何将DT和dd的样式设计成同一行?

提问于 2018-01-09 23:57:14
回答 2关注 0查看 1.2K

使用CSS:

代码语言:javascript
复制
<dl>
    <dt>Mercury</dt>
    <dd>Mercury (0.4 AU from the Sun) is the closest planet to the Sun and the smallest planet.</dd>
    <dt>Venus</dt>
    <dd>Venus (0.7 AU) is close in size to Earth, (0.815 Earth masses) and like Earth, has a thick silicate mantle around an iron core.</dd>
    <dt>Earth</dt>
    <dd>Earth (1 AU) is the largest and densest of the inner planets, the only one known to have current geological activity.</dd>
</dl>

所以内容dt在一列中显示和dd在另一列中,每一列dt以及相应的dd在同一条线上?

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档