Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
看到这个小提琴:JSfiddle
最后一个div是id="3"留在底部。我想做的是把它<div id="3">带到底部<div id="2">,右边<div id="1">
div
id="3"
<div id="3">
<div id="2">
<div id="1">
我怎样才能正确对齐?
提前致谢...
没什么可做的。只需<div id="1"..>设置float:left并删除显示属性即可。
<div id="1"..>
float:left
<div style="float:left;border:1px solid gray;width:48%;word-wrap:break-word;" id="1">
演示
建议:ID's不应该以数字开头。请将您的 id 名称更改为单词。
ID's