Strong tags new line

本秂侑毒 提交于 2021-02-05 06:52:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!