输入banner图图片脚本导航/分类

如何让两个div显示在一行的问题_html/css_WEB-ITnose

xxx
yyy

要求:
1.不改father
2.不能给son指定具体的像素值。
3.使grandson1,grandson2显示在一行


回复讨论(解决方案)

你father是70,下面2个是50,怎么在一行啊?





xxx

yyy






楼主 这个意思?

grandson1 diaplay:inline;
grandson2 diaplay:inline;
还可以不用float了

DIV布局~

    js SplitPanel
Left
center top
center bottom

grandson1 diaplay:inline;
grandson2 diaplay:inline;
还可以不用float了

三楼的思路是对的,但据说inline不太兼容

grandson1 diaplay:inline;
grandson2 diaplay:inline;
还可以不用float了

三楼的思路是对的,但据说inline不太兼容

z-index行吗?

xxx
yyy

HTML code


<……
+1
用定位让它脱离文档

引用 9 楼 acesidonu 的回复:

HTML code


用绝对位置行吧