【问题标题】:Using select2 in a contact form but css tricks are not working on it在联系表单中使用 select2,但 css 技巧不起作用
【发布时间】:2017-09-16 09:47:10
【问题描述】:

这是链接https://dcrazed.com/html/signup-pack/,我也从该链接中获取了用于动画标签底线的代码。 一切正常,但不适用于多选。

<pre>
<span class="input input--hoshi">
			          <!-- <textarea style="resize:none" placeholder="" rows="5" class="input__field input__field--hoshi form-control" id="description"></textarea> -->
			          <select id="services_select" class="input__field input__field--hoshi" multiple="multiple" style="width:100%" id="service">
							<option value="AL">Website Development</option>
							<option value="AL">App Development</option>
							<option value="AL">Domain Registration</option>
							<option value="AL">Hosting</option>
							<option value="AL">Plugin</option>
							<option value="AL">Logo Design</option>
							<option value="AL">Digital Marketing</option>
						</select>
			          <label class="input__label input__label--hoshi input__label--hoshi-color-3" for="desc">
			            <span class="input__label-content input__label-content--hoshi">services you want</span>
			          </label>
			        </span>
</pre>

【问题讨论】:

    标签: jquery jquery-select2


    【解决方案1】:

    试试这个

    <span class="input input--hoshi">
              <select class="input__field input__field--hoshi" type="text" id="email">
        <option selected=""></option>
        <option>V2</option>
        <option>V3</option>
    </select>
    <label class="input__label input__label--hoshi input__label--hoshi-color-3" for="email">
         <span class="input__label-content input__label-content--hoshi">My select</span>
    </label>
    
    </span>
    

    【讨论】:

    • 不工作..你能分享在线平台上的运行预览吗??
    猜你喜欢
    • 2014-06-05
    • 2012-03-21
    • 1970-01-01
    • 1970-01-01
    • 2013-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多