勤学如春起之苗,不见其增,日有所涨
辍学如磨刀之石,不见其损,日有所亏
cengbin / cengbin.github.io Goto Github PK
View Code? Open in Web Editor NEW彬彬的技术博客
Home Page: https://cengbin.github.io
彬彬的技术博客
Home Page: https://cengbin.github.io
window.onload=function(){ var bg_audio=document.getElementById('bg'); //解决微信浏览器不播放媒体的问题 document.addEventListener("WeixinJSBridgeReady",function() { window["WeixinJSBridge"].invoke('getNetworkType',{},function(e) { bg_audio.play(); bg_audio.pause(); }); }); }
input元素种类:参考地址https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input
search:与text文本框类似,用于搜索;
tel: 与text文本框类似,用于电话;
url: 与text文本框类似,用于url格式的地址;
email: 与text文本框类似,用于email格式的地址;
number: 与text文本框类似,用于数值;
range: 只允许输入一段范围内的数值,通过min和max属性来设置范围;
color: 颜色文本框,“#000000”格式的文字;
file: 文件选择文本框,HTML5中通过multiple属性可以多选;
datetime、date、month、week、time、datetime-local 各种日期与时间输入的文本框;
output: 定义不同类型的输出;
表单验证相关:
required属性:具有该属性的元素,如果其内容为空则不允许提交,并给出相应的提示。
pattern属性:具有该属性的元素,如果内容不为空则把内容与pattern的值进行正则匹配,匹配不成功则不通过并提示。
min属性和max属性:它们是值类型和日期类型的input元素专用属性,限制了输入的范围。
step属性:控制元素的值增加或减少的步幅,如输入1-100之间的数字,且步幅是5,那么只能输入1、6、11....。
<head>
<nav>
<main>
<section>
<article>
<footer>
<figure>
<figcaption>
<video>
<audio>
1、为html和body同时设置height:100%;overflow:hidden;
html, body{ height:100%; overflow:hidden; }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.