【问题标题】:CSS positioning 3CSS定位3
【发布时间】:2011-09-23 03:22:40
【问题描述】:

我希望“SOL”位于左侧块的中心,而“SAG”位于右侧块的中心。但它要么在最左边,要么在最右边。我怎样才能使它们成为左右块的中心?

链接:http://www.orhancanceylan.com/sgkm

【问题讨论】:

    标签: css positioning


    【解决方案1】:

    使用以下属性将这 3 个东西包装在 div 中

    display:block;
    width:33%;
    text-align:center;
    float:left;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-10-19
      • 2012-09-03
      • 2010-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多