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>

posted @ 2010-06-30 12:34  山村果园  阅读(316)  评论(3编辑  收藏  举报