0
我要放置一張圖片,以便您可以看到我的想法。這不像存在的佔位符,除非一些文本放在框中。是否可以在表單域中添加標籤?
輸入新信息時標籤不會消失。
a sample form field design, i don't know if this can be translated to code
我要放置一張圖片,以便您可以看到我的想法。這不像存在的佔位符,除非一些文本放在框中。是否可以在表單域中添加標籤?
輸入新信息時標籤不會消失。
a sample form field design, i don't know if this can be translated to code
這裏的例子中,你如何能做到這
.input-with-label {
display: inline-block;
position: relative;
width: 200px;
}
.input-with-label input {
padding: 20px 5px 5px 5px;
}
.input-with-label .lbl {
position: absolute;
left: 5px;
top: 5px;
font-size: 12px;
opacity: 0.5;
}
<span class="input-with-label">
<input type="text" />
<span class="lbl">Contracted Authorites</span>
</span>
是的,正是我想要發生,謝謝你! – meintrouble
如果我理解你,你可以以'位置:absolute' :) –