object(mysqli_result)#13 (5) { ["current_field"]=> int(0) ["field_count"]=> int(25) ["lengths"]=> NULL ["num_rows"]=> int(1) ["type"]=> int(0) } HTML <input>佔位符屬性 - 程序員論壇 - Powered by Discuz!

程序員論壇

標題: HTML <input>佔位符屬性 [打印本頁]

作者: GreenCup    時間: 2020-3-13 11:13
標題: HTML <input>佔位符屬性
HTML <input> placeholder Attribute
HTML <input>佔位符屬性

<input placeholder="123-45-678">
  1. <form action="/action_page.php">
  2.   <label for="phone">Enter a phone number:</label>


  3.   <input type="tel" id="phone" name="phone" placeholder="123-45-678"
  4.   pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}">


  5.   <small>Format: 123-45-678</small>


  6.   <input type="submit">
  7. </form>
複製代碼





歡迎光臨 程序員論壇 (http://program.thesmartfire.com/) Powered by Discuz! X2.5