2016-07-19 5 views
1

私は、モーダルを垂直スクロールに拡張する項目がたくさんあるフォームを持っていますが、これは必要ありません。私は質問と回答を検索し、背景のスクロールとモーダル自己について話しました。ブートストラップモードで垂直スクロールを無効にする方法は?

.modal { 
 
    width: 70%; 
 
    margin: 0 auto;  
 
} 
 

 
.modal-header, .modal-footer { 
 
    text-align: center; 
 
}
<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="widget-header"> 
 
       <h4 class="modal-title" id="gridSystemModalLabel">product defineا</h4> 
 
      </div> 
 
      <div class="modal-body contentForm" id="modelResult"> 
 
       <br /> 
 
      </div> 
 
      <div class="modal-footer"> 
 
       <div class="" style="text-align:right"> 
 
        <button type="button" class="btn btn-primary" style="width: 100px; height: 38px;" onclick="submitform()">ok</button> 
 
        <button type="button" class="btn" data-dismiss="modal" style="width: 70px;height: 38px; ">cancel</button> 
 
       </div> 
 
      </div> 
 
     </div><!-- /.modal-content --> 
 
    </div><!-- /.modal-dialog --> 
 
</div>

あなたは任意のヘルプを提供することはできますか?

+1

あなたはあなたのコードの少しを表示することができますか? – AndrewLeonardi

+0

モーダルコードですか? – Motion

答えて

1

私はそれを自己で解決します。

.modal-body {overflow-y: hidden!important}

関連する問題