• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
程媛媛Lexy
博客园    首页    新随笔    联系   管理    订阅  订阅

【CSS】Intermediate6:Display

1display :inline/block/none

2.inline value

Cause all list items in a list to appear next to each other in one continuous line

rather than each one having its own line.

3.Block

Make a box standalone,fitting the entire width of its containing box,with an effectve line break before and after it.

 

4.inline-block(行内块)

keep a box inline but lend the greater formatting flexibility of block boxes,allowing margin to the right and left of the box.

 

5.none

doesn't display a box at all.Take the element'x box completely out of play.

visibility:hidden——Keep the box and its flow in place

 

6.Table

table-row=tr

talbe-cell=td

talbe-column

table-clolumn-group

talbe-row-group

table-header-group

table-footer-group

table-caption

 

7.inline-table

set the table without line breaks before and after it

 

8.list-item

nested in ul/ol

9.run-in

depend on the display of its parent

 

posted @ 2014-04-12 08:34  程媛媛Lexy  阅读(191)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3