源代码:
提交运行 »
<!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="http://www.fmpq.com/jscss/bootstrap/foundation.min.css"> <script src="http://www.fmpq.com/jscss/bootstrap/jquery.min.js"></script> <script src="http://www.fmpq.com/jscss/bootstrap/foundation.min.js"></script> <script src="http://www.fmpq.com/jscss/bootstrap/modernizr.js"></script> </head> <body style="padding:20px;"> <h2>圆角提示框</h2> <p> <code>.radius</code> 和 <code>.round</code> 类用于设置圆角提示框:</p> <span data-tooltip class="has-tip" title="Fmpq教程!">默认</span> <span data-tooltip class="has-tip radius" title="Fmpq教程!">圆角</span> <span data-tooltip class="has-tip round" title="Fmpq教程!">圆形</span> <!-- 初始化 Foundation JS --> <script> $(document).ready(function() { $(document).foundation(); }) </script> </body> </html>
测试结果: