bootstrap居中
怎么使这些内容在网页正中<!doctypehtml><html><head><metacharset="utf-8"><linkrel="stylesheet"href=...
怎么使这些内容在网页正中
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="view/css/bootstrap.min.css">
<title>无标题文档</title>
</head>
<body>
<form class="form-horizontal">
<div class="form-group">
<label for="inputName" class="col-sm-2 control-label">用户名</label>
<div class="col-xs-2">
<input type="text" class="form-control" id="inputName" placeholder="Name">
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-sm-2 control-label">密码</label>
<div class="col-xs-2">
<input type="password" class="form-control" id="inputPassword" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">登录</button>
<button type="reset" class="btn btn-default">重置</button>
</div>
</div>
</form>
</body>
</html> 展开
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="view/css/bootstrap.min.css">
<title>无标题文档</title>
</head>
<body>
<form class="form-horizontal">
<div class="form-group">
<label for="inputName" class="col-sm-2 control-label">用户名</label>
<div class="col-xs-2">
<input type="text" class="form-control" id="inputName" placeholder="Name">
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-sm-2 control-label">密码</label>
<div class="col-xs-2">
<input type="password" class="form-control" id="inputPassword" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">登录</button>
<button type="reset" class="btn btn-default">重置</button>
</div>
</div>
</form>
</body>
</html> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询