首页 > 其他分享 >html5中placeholder属性

html5中placeholder属性

时间:2023-03-13 20:35:47浏览次数:33  
标签:tel html5 提示信息 placeholder 输入 属性

用法:

placeholder 属性提供可描述输入字段预期值的提示信息,该提示会在输入字段为空时显示,并会在字段获得焦点时消失。

注意:placeholder 属性适用的 input 类型:text、search、url、tel、email 和 password

效果:

 

标签:tel,html5,提示信息,placeholder,输入,属性
From: https://www.cnblogs.com/doubleyancode/p/17212764.html

相关文章

  • 开心档之HTML 属性
    HTML属性属性是HTML元素提供的附加信息。HTML属性HTML元素可以设置属性属性可以在元素中添加附加信息属性一般描述于开始标签属性总是以名称/值对的形式出现......
  • File的accept的属性
    上传图片的<inputid="AttachedUrl"requiredname="AttachedUrl"accept="image/gif,i......
  • Django匿名用户的属性
    fromdjango.contrib.auth.modelsimportAnonymousUserclassAnonymousUser:id=Nonepk=Noneusername=''is_staff=Falseis_active=False......
  • 超链接<a>的属性及其链接方式
    1、语法:<ahref="超链接地址"target="在哪个页面打开">...<a/>举例: <ahref="https://www.baidu.com/"target="_blank">百度一下</a> -target属......
  • HTML5简介与基础骨架
    HTML5简介与基础骨架 HTML5介绍HTML5是用来描述网页的一种语言,被称为超文本标记语言.用HTML5编写的文件,后缀以.html结尾HTML是一种标记语言,标记语言是一套标记标......
  • 6.7属性
    6.7属性 属性格式code属性 constantvalue属性Deprecated属性exceptions属性innerClass属性 LineNumerTable属性localvariableTable属性 sourceFile 属......
  • maven pom relativePath属性的作用
    搭建maven项目,子模块指定父模块试,经常会在parent下面出现relativePath类似下面:<parent><groupId>net.itxw</groupId><artifactId>test</artifactId><vers......
  • angular onpush模式下优先使用markForCheck手动标记为脏属性并调用检测更新
    import{ChangeDetectorRef,Component,Input,ChangeDetectionStrategy,SimpleChanges}from'@angular/core';@Component({selector:'app-change-grandson',te......
  • 监听元素属性变化
    <divid="div1">111111111</div><buttononclick="handleClick()">OK</button><scripttype="text/javascript"charset="utf-8">constdiv1=document.querySele......
  • is的使用 私有属性 私有方法 单继承 多继承 多态
                              多态需要子类重写父类中的方法才会发生 ......