-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
172 lines (158 loc) · 7.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html>
<head>
<title>309 WebStudio</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 新 Bootstrap4 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<!-- popper.min.js 用于弹窗、提示、下拉菜单 -->
<script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
<!-- 最新的 Bootstrap4 核心 JavaScript 文件 -->
<script src="https://cdn.bootcss.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-md bg-dark navbar-dark">
<a class="navbar-brand" href="#">309 Studio</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">Web开发</a>
</li>
</ul>
</div>
</nav>
<br>
<div class="container">
<h2>表单和文字排版练习</h2>
<br>
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#menu1">表单排版</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#menu2">文字排版</a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div id="menu1" class="container tab-pane active"><br>
<form class="form">
<div class="row">
<div class="col-md-8">
<div class="form-group">
<label for="usr">用户名:</label>
<input type="text" class="form-control " id="usr">
</div>
<div class="form-group">
<label for="pwd">密码:</label>
<input type="password" class="form-control" id="pwd">
</div>
<div class="form-group">
<label for="chk-pwd">确认密码:</label>
<input type="password" class="form-control" id="chk-pwd">
</div>
<div class="form-group">
<div class="btn-group">
<label class="radio-inline btn btn-outline-primary">性别:</label>
<label class="radio-inline btn btn-outline-primary"><input type="radio" name="sex">男</label>
<label class="radio-inline btn btn-outline-primary"><input type="radio" name="sex">女</label>
</div>
</div>
<div class="form-group" style="display: inline">
<div class="btn-group">
<label class="radio-inline btn btn-info">学习方向:</label>
<label class="radio-inline btn btn-info"><input type="radio" name="optradio">编程</label>
<label class="radio-inline btn btn-info"><input type="radio" name="optradio">设计</label>
</div>
</div>
<div class="form-group" style="display: inline">
<div class="btn-group">
<label for="sel1" class="radio-inline btn btn-info">学院:</label>
<select class="form-control radio-inline btn btn-info" id="sel1">
<option>计算机学院</option>
<option>计算机学院2</option>
<option>计算机学院3</option>
<option>计算机学院4</option>
</select>
</div>
</div>
</div>
<div class="col-md-4">
<label>个人简介:</label>
<textarea rows="10" cols="30" class="form-control" id="intro"></textarea>
</div>
</div>
<br>
<div class="form-group">
<a class="btn btn-light" onclick="window.history.back()">返回</a>
<button type="reset" class="btn btn-primary">重置</button>
<button type="submit" class="btn btn-success">提交</button>
</div>
</form>
</div>
<div id="menu2" class="container tab-pane fade"><br>
<div class="row">
<div class="col jumbotron">
<h3>Menu 2</h3>
<h1>标题h1</h1>
<h2>标题h2</h2>
<p><b> 粗体 </b><u>下划线</u>
<del> 删除线</del>
<sup> 上标</sup><sub> 下标</sub></p>
<p>段落
</p>
<p>H<sub>2</sub>O 10<sup>2 </sup><font size="1"> 文字大小1 </font><font size="2">文字大小2 </font><font size="3">
文字大小3 </font><font size="4"> 文字大小4 </font><font size="5"> 文字大小5 </font><font size="6">
文字大小6 </font><font size="7">文字大小7</font><font color="orange">设置文字颜色</font></p>
<p><em> 强调文字 </em><b> 字体加重 </b><samp>显示编程代码</samp> 显示实例文字 <kbd>显示键盘按键文字</kbd>
<small>缩小文字</small>
<big>放大文字</big></p>
<div>
不换行控制:不管多长都会在一行111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
</div>
<p align="center">文字对齐方式:居中</p>
<p align="left">文字对齐方式:居左</p>
<p align="right">文字对齐方式:居右</p>
<center>居中的另一种方式</center>
<ul>
<li>列表1</li>
<li>列表2</li>
<li>列表3</li>
</ul>
<ol>
<li>有序列表</li>
<li>有序列表</li>
</ol>
<dl>
<dt> a. 有序列表</dt>
<dt> b. 有序列表</dt>
</dl>
<dl>
<dt> i. 有序列表</dt>
<dt> ii. 有序列表</dt>
</dl>
<pre>欲格式化文本 欲格式化文本</pre>
<textarea>
<table width="200" border="1">
<tr>
<td>1234</td>
<td>1234</td>
</tr>
</table>
</textarea>
</pre>
</div>
</div>
</div>
</div>
</div>
<div class="clearfix" style="text-align: center">© 2018 SincereXIA, XD Univ.</div>
</body>
</html>