本文介绍了强力标签新线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的强标签有问题.我正在使用引导程序来隐藏和查看基于响应式 css 的单词,但我有样式问题,即强标签将在浏览器上开始新行
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
推荐答案
在 Bootstrap 2.3.2 .visible-desktop
中有这个规则 display: inherit !important;
因此,如果您的强标记位于 div(或任何其他块类型元素)内,那么它将继承块类型行为.要么设置 display: inline !important;
或者把它放在一个跨度中来解决这个问题.
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.
这篇关于强力标签新线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!