2014-06-21 10 views
-1

내가이 버튼을 클릭 page.when 내 HTML에서 모달을 사용하는 트위터 부트 스트랩 3을 사용한 적이 모달은 used.i 트위터 bootstrap.can에서 적어도 Modal.No의 CSS와 타이포그래피의 코드를 사용할 수 있어야 사람이 모달 관련 jQuery 플러그인을 얻는 방법을 도와주세요?사용자 정의 트위터 부트 스트랩

그냥 더 나은 이해를 얻기 위해

http://getbootstrap.com/javascript/#modals의 지침에 따라

+0

의 버튼을 토글 가시성은 부트 스트랩 모달에 대해 살펴 있나요? http://getbootstrap.com/javascript/#modals – Seb33300

답변

0

, 당신은 내 바이올린 here을 볼 수 있습니다. 본인은 CSS와 타이포그래피없이 jQuery를 부트 스트랩 - modal.js를 사용합니다.

첫째, 모달 div의 구조를 확인하고 페이지로드는하자 jQuery를

의 조각
$('.modal').hide(); 

와 함께 자신의 CSS 또는 JQuery와

<!-- Modal --> 
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 
    <div class="modal-dialog"> 
    <div class="modal-content"> 
     <div class="modal-header"> 
     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> 
     <h4 class="modal-title" id="myModalLabel">Modal title</h4> 
     </div> 
     <div class="modal-body"> 
     ... 
     </div> 
     <div class="modal-footer"> 
     <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 
     <button type="button" class="btn btn-primary">Save changes</button> 
     </div> 
    </div> 
    </div> 
</div> 

숨기기를 사용하는지 여부와 때를 숨기 모달