我正在使用Materialize构建一个简短的表单,我希望将这些部分保留在可折叠列表功能中但是在我需要使用单选按钮的其中一个部分中,但它们似乎不在代码我已经设置好了。我已经用笔来查看我体内的摘录代码。
https://codepen.io/RPMcwilliams/pen/EvOqRm
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
</head>
<body style="height:10000px">
<h1>Example Form</h1>
<div class="row" name="Accordian">
<div class="input-field col s8">
<ul class="collapsible popout" data-collapsible="accordion">
<li>
<div class="collapsible-header"><i class="material-icons"></i>Example</div>
<div class="collapsible-body">
<div class="row">
<form action="#">
<p>
<input class="with-gap" name="group1" type="radio" id="one"/>
<label for="one">one</label>
<input class="with-gap" name="group1" type="radio" id="two"/>
<label for="two">two</label>
<input class="with-gap" name="group1" type="radio" id="three"/>
<label for="three">three</label>
<input class="with-gap" name="group1" type="radio" id="four"/>
<label for="four">four</label>
</p>
</form>
</div>
</div>
</li>
</ul>
</div>
</div>
</body>
</html>