div 内table 居中

css代码:  

      #dlgReply
        {
            /*display: table-cell;
            text-align: center;*/
            vertical-align: middle;
        }
        table
        {
            margin-left: auto;
            margin-right: auto;
        }

html代码:

<div id="dlgReply">
        <table>
            <tr>
                <td>
                    <label>
                        电话:
                    </label>
                </td>
                <td>
                    <input type="text" class="textbox" id="" />
                </td>
            </tr>
        </table>
    </div>


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/mane_yao/archive/2010/07/02/5709498.aspx

posted @ 2010-09-18 10:13  Yao,Mane  阅读(1666)  评论(0编辑  收藏  举报