代码之家  ›  专栏  ›  技术社区  ›  esqew

CSS对齐问题

  •  0
  • esqew  · 技术社区  · 14 年前

    我对CSS3比较陌生(不用说),我在调整内容方面遇到了困难。

    我有一个包含jquery ui tabs模块的页面。当我在页面上显示它时,它看起来像这样:

    edit I know it's a world screenshot,but I'll just say,the tab box i s left-aligned on the page.

    我已经尝试使用 text-align property on the ><td> and the ><div> containing the content,i even got so eperticate i tryed the html ><center> tag,all to no available.

    有没有人有一个确定的方式来集中与CSS的内容?

    事先谢谢!))g内容对齐有问题。

    我有一个包含jquery ui tabs模块的页面。当我在页面上显示它时,它看起来像这样:

    alt text

    编辑 我知道这是一个糟糕的屏幕截图,但我要说的是,标签框在页面上左对齐。

    我试过用 text-align 属性上 <td> 以及 <div> 包含内容,我甚至绝望地尝试了HTML <center> 标签,全部无效。

    有没有人有一个确定的方式来集中与CSS的内容?

    事先谢谢!:)

    1 回复  |  直到 14 年前
        1
  •  1
  •   Rohrbs    14 年前

    <div style="width: 50%; margin-left: auto; margin-right: auto">
        ... tabs
    </div>