V
V
Veniamin Smirnov2016-02-19 19:24:50
HTML
Veniamin Smirnov, 2016-02-19 19:24:50

Why is the Bootstrap modal not working on mobile?

Hey!
I have a window call button:

<a type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Политика конфиденциальности</a>

And the window itself:
<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">Политика конфиденциальности</h4>
      </div>
      <div class="modal-body">
        <p>Some text</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>
      </div>
    </div>
  </div>
</div>

Works great on a laptop. On the tablet and smartphone does not respond to pressing. What could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Veniamin Smirnov, 2016-02-19
@Ingword

The question is closed. Maybe someone will run into the same problem.
Solution: the button to call the modal window must be implemented through
Initially, Bootstrap offers through
which is a bit strange, I tried through
but it did not help.
The only negative is that you need to edit the button styles a bit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question