內佔位自動換行我需要把一個長placeholder
文本輸入字段中。一個輸入字段
然而,placeholder
會因削減其長文本。
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<label for="password">
<input id="password" name="user[password]" placeholder="Password (at least 8 letters, numbers, or punctuation marks)" size="30" type="password">
</label>
我真的添加此作爲提示的上方或下方的輸入欄,而不是試圖去擠這一切的佔位符文本 –
一個很好的方式,實際上,我最終使用'tooltip'而不是'placeholder' –
聽起來像是我的一個很好的解決方案 –