效果:
源码:
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width">
<title>菜鸟教程</title>
<link href="https://cdn.bootcss.com/ionic/1.3.2/css/ionic.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/ionic/1.3.2/js/ionic.bundle.min.js"></script>
</head>
<body>
<div class="bar bar-header">
<div class="h1 title">预输入标签</div>
</div>
<div class="content has-header">
<div class="list">
<label class="item item-input">
<input type="text" placeholder="Last Name"/>
</label>
<label class="item item-input">
<input type="text" placeholder="First Name"/>
</label>
<label class="item item-input">
<textarea placeholder="Comments" ></textarea>
</label>
</div>
<div class="padding">
<button class="button button-block button-positive">Submit</button>
</div>
</div>
</body>
</html>
注意:
1、textarea:是用来编辑文本的;
2、class:里面有一个padding选项,没有也没有多大区别,就是padding距离变化了;
3、button-block:表示按钮块;button-positive表示是蓝色的;
菜鸟教程实例链接地址:点我进入