源代码 -->
左右布局
AI 编程工具
点击运行
<!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.net/foundation/5.5.3/css/foundation.min.css"> <script src="https://cdn.staticfile.net/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.staticfile.net/foundation/5.5.3/js/foundation.min.js"></script> <script src="https://cdn.staticfile.net/foundation/5.5.3/js/vendor/modernizr.js"></script> </head> <body> <h2>根据屏幕尺寸显示元素</h2> <p><strong>注意:</strong> 重置浏览器窗口查看效果。</p> <p class="show-for-small-only">你在小型设备上。</p> <p class="show-for-medium-up">你在中型、大型、更大型、超大型的设备上。</p> <p class="show-for-medium-only">你在中型设备上。</p> <p class="show-for-large-up">你在大型、更大型、超大型的设备上</p> <p class="show-for-large-only">你在大型设备上。</p> <p class="show-for-xlarge-up">你在更大型、超大型的设备上。</p> <p class="show-for-xlarge-only">你在更大型设备上。</p> <p class="show-for-xxlarge-up">你在超大型设备上。</p> </body> </html>
运行结果