我正在尝试使用Bootstrap Material 设计主题,我现在使用带有以下代码的简单文本输入字段:
<div class="form-control-wrapper">
<input class="form-control empty" type="text"></input>
<div class="floating-label">
Title
</div>
<span class="material-input"></span>
</div>
看起来像这样:
但是当我输入一些文本时,文本和标签混合在一起:
不应该floating-label
消失吗?我究竟做错了什么?
欢迎所有提示!
[编辑 2]
这些都是我在我的进口<head>
:
<html ng-app="myApp">
<head>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<!-- Bootstrap -->
<link src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<!-- Bootstrap Material Design (https://github.com/FezVrasta/bootstrap-material-design) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/css/roboto.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/css/material-fullpalette.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/css/ripples.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/js/material.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.3.0/js/ripples.min.js"></script>
<!-- Angular -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.3/angular.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.2.15/angular-ui-router.js"></script>
<!-- My own scripts -->
<script src="js/app.js"></script>
<script src="js/controllers.js"></script>
</head>
<body>
<div ui-view></div>
</body>
</html>
和我main.html
使用 Angular 加载的:
<form novalidate>
<div class="form-control-wrapper">
<input class="form-control empty" type="text"></input>
<div class="floating-label">
Title
</div>
<span class="material-input"></span>
</div>
</form>
[编辑 3] 对我来说,小提琴也不起作用。我在 Chrome 和 Firefox 中都试过了。两者都是最新的。一探究竟:
有任何想法吗?