引导对话框,将标题右对齐

时间:2018-12-05 22:54:05

标签: css html5 bootstrap-modal

由于某种原因,引导对话框将标题向右对齐。 我尝试修改类模式标题,尝试创建另一个类“强制”以使文本向左对齐,但没有成功。

代码如下:

<div class="modal fade" id="modal_editor" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

    <div class="modal-dialog modal-lg">
        <div class="modal-content largemodal">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Editor</h4>
            </div>
            <div class="modal-body" id="content">
                <iframe src="Editor.aspx" width="750" height="470"></iframe>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

任何帮助都将不胜感激!

1 个答案:

答案 0 :(得分:0)

问题出在其中是模态标题。

像这样切换顺序。

<div class="modal fade" id="modal_editor" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

    <div class="modal-dialog modal-lg">
        <div class="modal-content largemodal">
            <div class="modal-header">
                <h4 class="modal-title">Editor</h4>
                <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>
            <div class="modal-body" id="content">
                <iframe src="Editor.aspx" width="750" height="470"></iframe>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>

就是这样。