做PHP后端技术所必须要会的HTML基础知识【干货分享】

做PHP后端技术所必须要会的HTML基础知识【干货分享】

placeholder:input的属性,在input框还没有数据时,显示灰色字

html,head,title,method,script,style,DOCTYPE,img,a,form,input,table,tr,td,ul,li,br,marquee(让内容动)

meter: 进度条,属性:max,min,value

progress: 进度条加强版,属性:max,min,value

contenteditable:用于设置内容是否可更改的属性。true为可更改,false为不可更改(默认)

darggable: 用于设置元素是否可拖动,可配合JS一起使用。true为可拖动,false为不可拖动(默认)

<!--.......-->:注释


<input type='file' name='file[]' multiple='multiple'>multiple:允许多文件上传属性

<form action='处理页面' method='POST/GET' enctype='multipart/form-data'></form>

submit:提交

reset: 重置

<textarea></teatarea>文本区域

pre:原样输出

<label for='目标ID'></label>:标签,用于表单

<a href='' target=_blank></a>:设置在新的窗口中打开超链接

<form action='1.php' method='post' enctype='multipart/form-data'></form>可上传文件 


frameset:页面分帧

frame

<frameset rows='20%,*' frameborder='1' bordercolor='#6aa79c' marginheight='0' framespacing='0' marginwidth='0' noresize>

<frame src='__URL__/top' name='top' />

<frameset cols='50%,50%'>

<frame src='__URL__/left' name='left'/>

<frame src='__URL__/right' name='right'/>

</frameset>

</frameset>

onafterpaste="this.value=this.value.replace(/^\D/g,'')":当有内容复制到这里时,把匹配不成功的字符换成空

onkeyup="value=value.replace(/[^\d]/g,'')" :让文本框只能输入数字


最后编辑于:2019/10/13作者: 牛逼PHP

发表评论