首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >bootstrap-modal两个实例

bootstrap-modal两个实例
EN

Stack Overflow用户
提问于 2015-02-01 23:36:09
回答 1查看 80关注 0票数 0

我能够加载外部内容到我的引导模式,但每次我调用模式页面时,它会创建一个额外的实例,请参阅此屏幕截图用户(https://dl.dropboxusercontent.com/u/67763500/modal%20issue.PNG)如何解决此问题?我相信它在CSS上,但不确定具体在哪里。

以下是我的视图代码:

代码语言:javascript
复制
<div id="responsive" class="modal fade" tabindex="-1" data-width="760" style="display: none;">
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h4 class="modal-title">Info</h4>
</div>
<div class="modal-body">

</div>
<div class="modal-footer">

    @*<button type="button" class="btn btn-primary">Save changes</button>*@
</div>

点击我!

下面是目标模式的代码

代码语言:javascript
复制
<div class="modal-body">
<dl class="dl-horizontal">
    <dt>
        @Html.DisplayName("User Name")
    </dt>

    <dd>
        @ViewBag.username
    </dd>

    <dt>
        @Html.DisplayNameFor(model => model.Name_Prefix)
    </dt>

    <dd>
        @Html.DisplayFor(model => model.Name_Prefix) .
    </dd>

</dl>

<p>
    @*@Html.ActionLink("Edit", "Edit", new { id = Model.CustomerId }) |*@
    <button type="button" data-dismiss="modal" class="btn btn-default">Close</button>
</p>

EN

回答 1

Stack Overflow用户

发布于 2015-02-02 00:18:40

我想通了。是我页面上的另一个脚本导致了这个问题。我把它拿掉了,它就像一个护身符。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28264431

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档