小编Moh*_*edi的帖子

如何将Bootstrap模态放在水平中心?

我有一个我调整大小的模态.我想要大尺寸的模态和水平居中.另外,当我将其调整为较小时,它是正确的.

<style>
    #PopupModel   {width:60%;}

.modal {
}
.vertical-alignment-helper {
    display:table;
    height: 100%;
    width: 100%;
}
.vertical-align-center {
    /*/To center vertically*/ 
    display: table-cell;
    vertical-align: middle;
}
.modal-content {
     /*Bootstrap sets the size of the modal in the modal-dialog class, we need to inherit it*/ 
    width:inherit;
    height:inherit;
     /*To center horizontally*/ 
   
}

</style>
Run Code Online (Sandbox Code Playgroud)
<div class="modal fade" id="PopupModel" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel" >
    <div class="modal-dialog" role="document" >
        <div class="modal-content" >    

            <div class="modal-header">

                <h4 class="modal-title" id="gridSystemModalLabel">Product Define</h4>


            </div>
            <div class="modal-body" id="modelResult">
                <br />
            </div>


        </div><!-- /.modal-content …
Run Code Online (Sandbox Code Playgroud)

html css twitter-bootstrap

3
推荐指数
1
解决办法
2万
查看次数

如何使用jQuery检查输入中的重复值

我有一个html表,其中有输入.我想检查自定义列中的重复值或另一方面Non Dupllicated td value.

<table>
    <tr><td><input value="one"/></td></tr>
    <tr><td><input value="two"/></td></tr>
    <tr><td><input value="one"/></td></tr>
    <tr><td><input value="nine"/></td></tr>
    <tr><td><input value="four"/></td></tr>
</table>
Run Code Online (Sandbox Code Playgroud)

我想检查所有输入td,如果值重复显示错误.例如,顶部代码one是重复的.我不想用for().

html javascript jquery

1
推荐指数
1
解决办法
7032
查看次数

标签 统计

html ×2

css ×1

javascript ×1

jquery ×1

twitter-bootstrap ×1