Javascript 进入时引导标记不显示

Javascript 进入时引导标记不显示,javascript,html,css,twitter-bootstrap,bootstrap-tags-input,Javascript,Html,Css,Twitter Bootstrap,Bootstrap Tags Input,我想问一下,为什么每次我试图输入值时,值都会消失,而不是消失为空白,但文本却像是隐藏的?我尝试了一个解决方案,我把它联系起来了。尝试不同的引导版本会破坏我页面中的整个UI,这对我绝对不好 以下是我尝试过的解决方案: index.html <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2

我想问一下,为什么每次我试图输入值时,值都会消失,而不是消失为空白,但文本却像是隐藏的?我尝试了一个解决方案,我把它联系起来了。尝试不同的引导版本会破坏我页面中的整个UI,这对我绝对不好

以下是我尝试过的解决方案:

index.html

<!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
    <!-- Customized CSS -->
    <link rel="stylesheet" href="css/style.css">
    <link rel="shortcut icon" href="files/Images/logoapp.png">
    <!-- DataTable CSS -->
    <link rel="stylesheet" href="https://cdn.datatables.net/1.10.23/css/jquery.dataTables.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.css" integrity="sha512-xmGTNt20S0t62wHLmQec2DauG9T+owP9e6VU8GigI0anN7OXLip9i7IwEhelasml2osdxX71XcYm6BQunTQeQg==" crossorigin="anonymous" />
    <!-- Font Awesome JS -->
    <script defer src="https://use.fontawesome.com/releases/v5.0.13/js/solid.js" integrity="sha384-tzzSw1/Vo+0N5UhStP3bvwWPq+uvzCMfrN1fEFe+xBmv1C/AtVX5K0uZtmcHitFZ" crossorigin="anonymous"></script>
    <script defer src="https://use.fontawesome.com/releases/v5.0.13/js/fontawesome.js" integrity="sha384-6OIrr52G08NpOFSZdxxz1xdNSndlD4vdcf/q2myIUVO0VsqaGHJsB0RaBE01VTOY" crossorigin="anonymous"></script>


<div class="form-group">
   <label for="LabelTitle">Tags</label>
       <div class="tag-container">
          <input type="text" value="" data-role="tagsinput" id="tags" placeholder="Add tags" />
       </div>
</div>

<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<!-- Popper.JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<!-- Bootstrap JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.css" integrity="sha512-xmGTNt20S0t62wHLmQec2DauG9T+owP9e6VU8GigI0anN7OXLip9i7IwEhelasml2osdxX71XcYm6BQunTQeQg==" crossorigin="anonymous" />

标签

我复制了您提供的代码,当我在文本框中键入
值时,占位符消失,新的
值也在那里(它应该如何工作)。。。