问题
I have problem with my strong tag. I'm using bootstrap to hide and view word based on responsive css but i have style issue wher strong tag will start new line on browser
<strong class="visible-desktop hidden-tablet hidden-phone"> Software/</strong> <strong class="hidden-desktop visible-tablet visible-phone">Web/</strong><strong class="hidden-desktop hidden-tablet visible-phone">Mobile</strong> Developer
回答1:
In Bootstrap 2.3.2 .visible-desktop
has this rule display: inherit !important;
So if your strong tag is inside a div (or any other block type element) then it will inherit the block type behavior.
Either set display: inline !important;
or maybe place it in a span to fix this.
回答2:
Add this to your css.
strong {
display:inline !important;
}
来源:https://stackoverflow.com/questions/18419254/strong-tags-new-line