我有一個projectizecss項目,並且我想(總是)class="active"
(總是)在輸入字段的左側。如何將標籤移動到左側,而相對縮小輸入字段,這樣它們都能很好地匹配到列中?Materialisecss如何獲得輸入左側的標籤
Here is my jsfiddle of the scenario
我有一個projectizecss項目,並且我想(總是)class="active"
(總是)在輸入字段的左側。如何將標籤移動到左側,而相對縮小輸入字段,這樣它們都能很好地匹配到列中?Materialisecss如何獲得輸入左側的標籤
Here is my jsfiddle of the scenario
您還可以使用內嵌類http://materializecss.com/forms.html
<div class="row">
<form class="col s12">
<div class="row">
<div class="col s12">
First Name:
<div class="input-field inline">
<input id="last_name" type="text" class="validate square-box align-right">
</div>
</div>
</div>
</form>
</div>
正如@Alastair說,在問題之下的評論,我只是完全刪除的標籤,只是在自己使用的<p></p>
div
,並將該div放置在input
左側的
col
中默認情況下該標籤位於輸入框的頂部。你可以做的是在輸入框前面有一些文本,而不是標籤。 – Alastair真的很聰明的想法。我會試一試 – IWI
我還添加了一個你可能會發現的使用答案。 – Alastair