当我向Materializecss投放时,我试图在materializecss上制作信息表格,它看起来像这样:
https://www.bootply.com/dpVsPm6vsI
没有Materializecss的示例:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<div class="container">
<h2>Bootstrap Horizontal Form</h2>
<form class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2" for="email">Yyyyy Yyy:</label>
<div class="col-sm-10">
<label class="control-label" id="email">Yyy Value</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="email">Xxxxxx XXxx:</label>
<div class="col-sm-10">
<label class="control-label" id="email">Xxxxxx Value</label>
</div>
</div>
</form>
</div>
<div id="push"></div>
&#13;
Materialisecss示例:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/js/materialize.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<div class="container">
<h2>Bootstrap Horizontal Form</h2>
<form class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2" for="email">Yyyyy Yyy:</label>
<div class="col-sm-10">
<label class="control-label" id="email">Yyy Value</label>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="email">Xxxxxx XXxx:</label>
<div class="col-sm-10">
<label class="control-label" id="email">Xxxxxx Value</label>
</div>
</div>
</form>
</div>
<div id="push"></div>
&#13;
答案 0 :(得分:1)
<div class="container">
<h2>Bootstrap Horizontal Form</h2>
<form class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2" for="email">Yyyyy Yyy:</label>
<label class="control-label" id="email">Yyy Value</label>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="email">Xxxxxx XXxx:</label>
<label class="control-label" id="email">Xxxxxx Value</label>
</div>
</form>
答案 1 :(得分:0)
谢谢大家。我做了:https://jsfiddle.net/evolving/7pjLgrn2/18/
<label>
至<p>