无项目列表(Un-bulleted List)
优质
小牛编辑
131浏览
2023-12-01
描述 (Description)
默认情况下,元素《ul》是Foundation中的项目符号列表。 要删除项目符号,可以使用.no-bullet类。
例子 (Example)
以下示例演示了在Foundation中使用un-bulleted list 。
<!doctype html>
<html>
<head>
<title>Un-bulleted List</title>
<link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/css/foundation.css">
</head>
<body>
<p>List with <i>no-bullet</i> class.</p>
<ul class = "no-bullet">
<li>List item 1</li>
<li>List item 2
<ul>
<li>Nested list item 1</li>
<li>Nested list item 2</li>
<li>Nested list item 3</li>
</ul>
</li>
<li>List item 3</li>
</ul>
<p>List without <i>no-bullet</i> class.</p>
<ul>
<li>List item 1</li>
<li>List item 2
<ul>
<li>Nested list item 1</li>
<li>Nested list item 2</li>
<li>Nested list item 3</li>
</ul>
</li>
<li>List item 3</li>
</ul>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/vendor/jquery.min.js"></script>
<script src = "https://cdnjs.cloudflare.com/ajax/libs/foundation/6.0.1/js/foundation.min.js"></script>
<script>
$(document).ready(function() {
$(document).foundation();
})
</script>
</body>
</html>