[英]Align the inline-block elements
See this fiddle: JSfiddle 看到这个小提琴: JSfiddle
The last div
that is the with id="3"
is staying at the bottom.What i want to do is bring the <div id="3">
to the bottom of <div id="2">
, the right of <div id="1">
id="3"
的最后一个div
位于底部。我要执行的操作是将<div id="3">
移至<div id="2">
的底部,即<div id="1">
How can i align that correctly? 如何正确对齐?
Thanks in advance... 提前致谢...
Nothing much to be done. 没什么可做的。 Just make your
<div id="1"..>
to float:left
and remove the display attribute. 只需将您的
<div id="1"..>
为float:left
并删除display属性即可。
<div style="float:left;border:1px solid gray;width:48%;word-wrap:break-word;" id="1">
Suggestion: ID's
shouldn't start with a number. 建议:
ID's
不能以数字开头。 Please change your id name's to words. 请将您的ID名称更改为word。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.