CSS方法代替显示:run-in;定位块内联? [英] CSS method instead of display:run-in; to position a block inline?

查看:120
本文介绍了CSS方法代替显示:run-in;定位块内联?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我在使用display:run-in时遇到了关于定位一个block元素(header)的问题,我要求你的帮助!一直在寻找相当一段时间,我无法找到哪个CSS方法可以使用,而不是只应用display:run-in;到所有主流浏览器都支持的元素。

任何人都知道如何做到这一点?

解决方案

如果您希望将元素显示为块元素,但将其放置为内嵌,则

b
$ b

  display:inline-block; 

会为您解决问题。


Since I am having trouble with Firefox about positioning a block element by nature (header) to be inline by using display:run-in; i'm asking you for your help ! been searching for quite some time now and I cant find which CSS method could be used instead of just applying display:run-in; to the element, which is supported in all the major browsers. It is crucial that i position the element this way.

Anyone knows a method how to do this ?

解决方案

If you'd like to display your element as a block element, but would position it inline, then

display: inline-block;

will do the trick for you.

这篇关于CSS方法代替显示:run-in;定位块内联?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆