【问题标题】:Label over lay issue in MaterializeMaterialise 中的标签覆盖问题
【发布时间】:2016-08-01 10:44:26
【问题描述】:

我正在使用 Materialise 开发一个项目。我面临文本框中预填充值的问题。 下面是截图:

<div class="input-field col s12 m6">
   <input class="" id="userNameAccount" type="text" ng-model="userNameAccount" >
      <label class="active" for="">User Name <span class="required">*</span></label>
 </div>





 <script type="text/javascript">
    $(document).ready(function(){
        Materialize.updateTextFields();
    });
</script>

【问题讨论】:

    标签: html css materialize


    【解决方案1】:

    我知道这是一个老问题,但这是我找到的解决方案,它对我来说就像一个魅力:

    给值加一个空格:

    &lt;input id="userPassword" type="password" class="validate" asp-for="Password" value=" "&gt;

    我在这里找到了这个:Solution

    【讨论】:

      猜你喜欢
      • 2020-03-21
      • 1970-01-01
      • 1970-01-01
      • 2023-01-27
      • 1970-01-01
      • 2015-01-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多