javascript - Search bar in navbar doesn't look the same in Google Chrome and Firefox -


I have the following code for my search bar in nebber. It looks well in Firefox but the search bar on Google Chrome Spreads and goes down navigation. How can I fix this?

  & quot; Div class = "navbar navbar-inverse navbar-fixed-top" & gt; & Lt; Div class = "navbar-inner" & gt; & Lt; Div class = "container" & gt; & Lt; A href = "#" class = "navbar-brand" & gt; SIG Inventory System & lt; / A & gt; & Lt; Div class = "navbar-header" & gt; & Lt; Button type = 'button' class = "navbar-toggle" data-toggle = "collapse" data-target = ". NavHeaderCollapse" & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; Span class = "icon-bar" & gt; & Lt; / Span & gt; & Lt; / Button & gt; & Lt; / Div & gt; & Lt; Div class = "collapse navbar-collapse navHeaderCollapse" & gt; & Lt; Ul class = "nav navbar-nav" & gt; & Lt; Li class = "active" & gt; & Lt; A href = "#" & gt; Home & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; About & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Form class = "navbar-form navbar-right" role = "search" & gt; & Lt; Div class = "input-group" & gt; & Lt; Input type = "text" class = "form-control input-sm" placeholder = "search ..." name = "srch-term" id = "srch-term" & gt; & Lt; Div class = "input-group-btn" & gt; & Lt; Button class = "BTN BTN-Danger BTN-SM" type = "Submit">  

I had problems with very similar markup in Bootstrap 3, because it has its override CSS , it will fix the end issue, but does not solve the actual problem, unfortunately. I have not got it yet, though.

  nav .navbar-form {max-width: 300px}  

edit

This is a bit more elegant to decide.

  .navbar-form. Input-group-btn, .navbar-look Input-group-addon {width: auto; }  

However, I settled at:

  .navbar-form. Input-group-btn, .navbar-form input {width: auto; }  

View


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -