mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
81 lines
2.4 KiB
HTML
81 lines
2.4 KiB
HTML
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Forms</title>
|
|
|
|
<!-- Sets initial viewport load and disables zooming -->
|
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
<link href="/vendor/font-awesome/css/font-awesome.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="../../dist/ionic.css">
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<section>
|
|
|
|
<header class="bar bar-header bar-dark">
|
|
<h1 class="title">Forms</h1>
|
|
</header>
|
|
|
|
<main class="content content-padded has-header">
|
|
|
|
<h2>Default form layout</h2>
|
|
|
|
<form>
|
|
<fieldset>
|
|
<legend>Legend</legend>
|
|
<label>Label name</label>
|
|
<input type="text" placeholder="Type something…">
|
|
<span class="help-block">Example block-level help text here.</span>
|
|
<label class="checkbox">
|
|
<input type="checkbox"> Check me out
|
|
</label>
|
|
<button type="submit" class="btn">Submit</button>
|
|
</fieldset>
|
|
</form>
|
|
|
|
|
|
<h2>Inline form layout</h2>
|
|
<form class="form-inline">
|
|
<input type="text" class="input-small" placeholder="Email">
|
|
<input type="password" class="input-small" placeholder="Password">
|
|
<label class="checkbox">
|
|
<input type="checkbox"> Remember me
|
|
</label>
|
|
<button type="submit" class="btn">Sign in</button>
|
|
</form>
|
|
|
|
|
|
<h2>Horizontal form layout</h2>
|
|
<form class="form-horizontal">
|
|
<div class="control-group">
|
|
<label class="control-label" for="inputEmail">Email</label>
|
|
<div class="controls">
|
|
<input type="text" id="inputEmail" placeholder="Email">
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label" for="inputPassword">Password</label>
|
|
<div class="controls">
|
|
<input type="password" id="inputPassword" placeholder="Password">
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<div class="controls">
|
|
<label class="checkbox">
|
|
<input type="checkbox"> Remember me
|
|
</label>
|
|
<button type="submit" class="btn">Sign in</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
|
|
<p><a class="button button-secondary" href="index.html">Homepage</a></p>
|
|
</main>
|
|
|
|
</section>
|
|
|
|
</body>
|
|
</html>
|