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.
如何在三角形之间放置矩形?http://goo.gl/EgXE5k当我从矩形中删除文本时,它会返回其正常位置。`
将它们全部浮动:
.left,.center,.right { float:left; }
jsFiddle 示例
将此添加到矩形:
vertical-align: top;
http://jsfiddle.net/HMfz7/
您可以使用
position: absolute;
然后为每个DIV设计left和top属性
更新的小提琴