简单教程
提交运行
代码编辑器:
<!DOCTYPE html> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.bootcss.com/foundation/5.5.3/css/foundation.min.css"> <ul class="side-nav"> <li class="active"><a class="a" href="#">Link 1</a></li> <li><a class="a" href="#">Link 2</a></li> <li><a class="a" href="#">Link 3</a></li> <li><a class="a" href="#">Link 4</a></li> </ul> <div style="padding:20px;"> <h3>侧栏导航</h3> <p> .active 类用于设置当期页链接</p> </div>
运行结果: