Use with HTML
优质
小牛编辑
125浏览
2023-12-01
描述 (Description)
交换也可以用于html文件。 它可以交换整个HTML块,它可以加载所有类型的屏幕大小。
例子 (Example)
以下示例演示了在Foundation中使用与HTML的交换 -
<!DOCTYPE html>
<html>
<head>
<title>Foundation Template</title>
<meta name = "viewport" content = "width = device-width, initial-scale = 1">
<link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/css/foundation.css">
<script src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/foundation.min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.js"></script>
</head>
<body>
<h2>Example of use with HTML</h2>
<div data-interchange = "[https://www.xnip.cn, (small)],
[https://www.xnip.cn, (medium)],
[https://www.xnip.cn, (large)]"></div>
<script>
$(document).ready(function() {
$(document).foundation();
})
</script>
</body>
</html>