0
我正在創建一個使用Featherlight和Taggle的標籤。Tagged inside Featherlight Form?
當您鍵入一個標籤並用逗號分隔時,它們會變成樣式化的框。
但是,標籤在Featherlight窗體中不具有風格。
演示
https://jsfiddle.net/wpeLxo1e/1/
HTML
<body>
<br />
<!-- Featherlight Button -->
<p><a href="#" data-featherlight="#myform">Open Featherlight</a></p>
<!-- Featherlight Form -->
<div class="container">
<form id="myform" class="form">
<!-- Tags -->
Tags (Featherlight)
<div id="tags-featherlight"></div>
</form>
</div>
<!-- Tags -->
<br />
Tags (No Featherlight)
<div id="tags"></div>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="https://noelboss.github.io/featherlight/release/featherlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/taggle/1.11.2/taggle.js"></script>
<script>
new Taggle('tags');
new Taggle('tags-featherlight');
</script>
</body>
CSS
@import 'https://sean.is/assets/styles/css/projects/taggle/taggle.min.css';
html, body {
font-family: Arial, sans-serif;
background: white !important;
}
.container {
display:none;
}
.form {
width:300px;
height:200px;
background:white;
border:1px solid black;
}
.taggle_input {
border: 1px solid gray !important;
}
我看不到要更改的內容。所有的課程和ID都保持相同的羽毛燈和非Featherlight Taggle輸入。該css從taggle.min.css加載。 –
那麼你想要什麼風格?文字輸入正確嗎? –
Taggle JavaScript使用taggle.min.css自動輸入樣式。但是,如果在羽毛之下,它不會激活和應用。 –