双飞翼布局
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了双飞翼布局,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1929字,纯文字阅读大概需要3分钟。
内容图文
![双飞翼布局](/upload/InfoBanner/zyjiaocheng/1304/754b9b2a9a6b4af891921c72f01f6769.jpg)
由玉伯前辈提出,淘宝团队最开始运用,如果把三栏布局比作一只大鸟,可以把main看成是鸟的身体,left和right则是鸟的翅膀。这个布局的实现思路是,先把最重要的身体部分放好,然后再将翅膀移动到适当的地方.
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> <link> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <style> body{margin: 0px;} .main{ width: 100%; height: 198px; background-color: #aaa; } .center{ margin-left: 198px; margin-right: 198px; float:left; background-color: #fff; } .left{ margin-left: -100%; float: left; width: 198px; height: 198px; background: red; } .right{ margin-left:-198px; width: 198px; float: left; background-color: green; } </style> <body> <div class="main"> <div class="center">html is very much! html is very much!html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much! html is very much!</div> <div class="left">html is very much! html is very much! </div> <div class="right">how old are you!how old are you!how old are you!how old are you!how old are you!how old are you!</div> </div> </body> <script> </script> </html>
原文:http://www.cnblogs.com/like-dream/p/7760799.html
内容总结
以上是互联网集市为您收集整理的双飞翼布局全部内容,希望文章能够帮你解决双飞翼布局所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。