Link 在 window 调整大小后不起作用
Link does not work after resize of window
我有一个包含 bootstrap div 的页面以及页面上的 2 个图像和按钮。在全屏模式下,页面工作正常。但是,当我调整页面大小时,只有其中一个图像和 2 个按钮中的 1 个起作用。这些图像在全屏中并排显示,但当它们调整大小时,一个图像位于另一个图像之上,顶部按钮和图像无法按下。这是视图。
<div class="jumbotron">
<div class="center-block">
<img src="https://s3.amazonaws.../Frontpage_logo.png" class="img-responsive" alt="...">
</div>
<div class="text-center">
<br/>
<br/>
<% if user_signed_in? %>
<%= link_to 'Your Dashboard', users_dashboard_url, class: 'btn btn-primary' %>
<% elsif manager_signed_in? %>
<%= link_to "Your Dashboard", managers_dashboard_url, class: 'btn btn-primary' %>
<% elsif admin_signed_in? %>
<%= link_to "3rd Party/Supplier Dashboard", admins_dashboard_url, class: 'btn btn-primary' %>
<br/>
<br/>
<%= link_to 'Monitoring', sidekiq_web_path %>
<% else %>
<div class="container-fluid">
<div class="col-md-5">
<div class= "pull-left">
<h3><strong>See how we ...!</strong></h3>
<a href="/managers/why_use_us"><img src="https://s3.amazonaws.../manager_video.jpg" class="img-responsive"></a>
<br>
<%= link_to "Manager", managers_why_url, class: 'btn btn-primary' %>
</div>
</div>
<div class="col-md-2">
<div class="text-center">
<h2>or</h2>
</div>
</div>
<div class="col-md-5">
<div class= "pull-right">
<h3><strong>See how we are helping ...!</strong></h3>
<a href="/users/why_choose_us"><img src="https://s3.amazonaws.../user_video.jpg" class="img-responsive"></a>
<br>
<%= link_to "Tenant", users_why_url, class: 'btn btn-primary' %>
</div>
</div>
</div>
</h2>
</div>
<% end %>
</div>
我有一个包含 bootstrap div 的页面以及页面上的 2 个图像和按钮。在全屏模式下,页面工作正常。但是,当我调整页面大小时,只有其中一个图像和 2 个按钮中的 1 个起作用。这些图像在全屏中并排显示,但当它们调整大小时,一个图像位于另一个图像之上,顶部按钮和图像无法按下。这是视图。
<div class="jumbotron">
<div class="center-block">
<img src="https://s3.amazonaws.../Frontpage_logo.png" class="img-responsive" alt="...">
</div>
<div class="text-center">
<br/>
<br/>
<% if user_signed_in? %>
<%= link_to 'Your Dashboard', users_dashboard_url, class: 'btn btn-primary' %>
<% elsif manager_signed_in? %>
<%= link_to "Your Dashboard", managers_dashboard_url, class: 'btn btn-primary' %>
<% elsif admin_signed_in? %>
<%= link_to "3rd Party/Supplier Dashboard", admins_dashboard_url, class: 'btn btn-primary' %>
<br/>
<br/>
<%= link_to 'Monitoring', sidekiq_web_path %>
<% else %>
<div class="container-fluid">
<div class="col-md-5">
<div class= "pull-left">
<h3><strong>See how we ...!</strong></h3>
<a href="/managers/why_use_us"><img src="https://s3.amazonaws.../manager_video.jpg" class="img-responsive"></a>
<br>
<%= link_to "Manager", managers_why_url, class: 'btn btn-primary' %>
</div>
</div>
<div class="col-md-2">
<div class="text-center">
<h2>or</h2>
</div>
</div>
<div class="col-md-5">
<div class= "pull-right">
<h3><strong>See how we are helping ...!</strong></h3>
<a href="/users/why_choose_us"><img src="https://s3.amazonaws.../user_video.jpg" class="img-responsive"></a>
<br>
<%= link_to "Tenant", users_why_url, class: 'btn btn-primary' %>
</div>
</div>
</div>
</h2>
</div>
<% end %>
</div>