菜单切换
FACESOHO知行者
心灵
记录
远方
赞赏工具
源代码:
点击运行
保存
<!DOCTYPE html> <html> <head> <title>Foundation 实例</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.staticfile.org/foundation/5.5.3/css/foundation.min.css"> <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/foundation/5.5.3/js/foundation.min.js"></script> <script src="https://cdn.staticfile.org/foundation/5.5.3/js/vendor/modernizr.js"></script> <style> body { padding:20px; } .panel { padding:0; border:none; width:50%; } div.container { text-align:center; padding:15px; margin-top:20px; } img { width:100%; } </style> </head> <body> <h2>Customized Panels</h2> <div class="panel"> <img src="//wxt.sinaimg.cn/large/d1613165ly1g17303pb1wj20q40h8k8e.jpg" alt="Cinque Terre" width="400" height="300"> <div class="container"> <h4>长城</h4> <p>不到长城非好汉!!!</p> </div> </div> </body> </html>
运行结果