安科网
源代码:
点击运行
<!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://img.s.ancii.com/tutorial/archive/statics/assets/foundation-5.5.3/foundation.min.css"> <script src="https://img.s.ancii.com/statics/assets/jquery/2.0.3/jquery.min.js"></script> <script src="https://img.s.ancii.com/statics/assets/foundation-5.5.3/js/foundation.min.js"></script> <script src="https://img.s.ancii.com/statics/assets/foundation-5.5.3/js/vendor/modernizr.js"></script> </head> <body> <h2>根据屏幕尺寸隐藏元素</h2> <p><strong>注意:</strong> 重置浏览器窗口查看效果。</p> <p class="hide-for-small-only">你不在小型设备上。</p> <p class="hide-for-medium-up">你不在中型、大型、更大型、超大型的设备上。</p> <p class="hide-for-medium-only">你不在中型设备上。</p> <p class="hide-for-large-up">你不在大型、更大型、超大型的设备上。</p> <p class="hide-for-large-only">你不在大型设备上。</p> <p class="hide-for-xlarge-up">你不在更大型、超大型的设备上。</p> <p class="hide-for-xlarge-only">你不在更大型设备上。</p> <p class="hide-for-xxlarge-up">你不在超大型设备上。</p> </body> </html>
运行结果
Copyright © 2013 - 2019 Ancii.com All Rights Reserved
京ICP备18063983号-5
京公网安备11010802014868号