您好,欢迎来到尔游网。
搜索
您的当前位置:首页如何让两个div显示在一行的问题_html/css_WEB-ITnose

如何让两个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 SplitPanelLeft center top center bottom right

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


呵呵 脱离真的可以实现这种效果呢

用绝对位置行吧

Copyright © 2019- axer.cn 版权所有 湘ICP备2023022495号-12

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务