在放大移动时,标题也被放大,因此我的标题部分是类 nav pull-right 被切断屏幕。我怎样才能解决这个问题?也许将标题大小固定为屏幕宽度?
<nav>
<ul class="nav pull-right">
<div class="signinform" <% if request.path == root_path && current_user.nil? %> style="padding-top: 18px;" <% end %>>
<%= form_for(:session, url: sessions_path, :html => { :class => "form-inline"}) do |f| %>
<input id="session_email" name="session[email]" type="text" class="input-medium" placeholder="Email">
<input id="session_password" name="session[password]" type="password" class="input-medium" placeholder="Password">
<button type="submit" class="btn btn-small btn-primary">Sign in</button>
<% end %>
</div>
</ul>
</nav>