博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
H5 以及 CSS3
阅读量:4701 次
发布时间:2019-06-09

本文共 1612 字,大约阅读时间需要 5 分钟。

 
                 
头部
左边
页脚
H5新增语义标签学习
学生档案
学生档案
学生档案综合表单小例子
/*$(function(){$('input#score').on('input propertychange', function() {    $("meter#level").val($(this).val());});});*/window.onload=function(){    document.getElementById("score").οninput=function(){        document.getElementById("level").value=this.value;    }}
学生档案综合表单小例子自定义的action.js文件

 

*{
padding:0; margin:0;}form{
width:600px; margin:20px auto;}form>fieldset{
padding:10px;}form>fieldset>meter,form>fieldset>input{
width:100%; height:40px; line-height:40px; margin:10px 0; border:none; border:1px solid #ccc; border-radius:4px; font-size:16px; padding-left:5px; box-sizing:border-box;}form>fieldset>meter{
padding-left:1px;}
form.css学生档案综合表单小例子自定义样式

 示例效果如下:

 

多媒体标签:

 <audio>

 <video>

 

autoplay

controls

height

width

辅助 <source src="xxx" type="video/mp4"/>  type="audio/mp3"

 

 

 

 

 

表单中新增的 标签有意义

 

 

 

 

 

 

 

 

 

DOM 操作:

querySelector();  传入 li 标签 或者 .green , #id  返回单个标签对象

querySelectorAll(); 传入 xxx   返回 一组标签对象

 

 

添加移除样式 class="red"  移除 red  class 仍然在的

 

 

 

 

 自定义属性:

 

 

转载于:https://www.cnblogs.com/Frank99/p/9030032.html

你可能感兴趣的文章
Android Architecture Components 系列(三) LiveData
查看>>
ECMAScript5的新特性总结
查看>>
不归零法编码、曼彻斯特编码和差分曼彻斯特编码
查看>>
uoj 218 火车管理
查看>>
UILabel的抗压缩、抗拉伸、以及控件的约束简述
查看>>
单例模式和多线程有没有关系?
查看>>
ASP.Net MVC4+Memcached+CodeFirst实现分布式缓存
查看>>
链式编程学习之练习篇
查看>>
SQL Server 索引结构及其使用
查看>>
HTTP 错误 404.2 - Not Found.
查看>>
uc/os调度机制深度解析
查看>>
Coreutils - GNU core utilities
查看>>
windows下利用VMware安装mac:构建…
查看>>
hdu 2740 Root of the Problem (水)
查看>>
让delphi解析chrome扩展的native应用
查看>>
用BP人工神经网络识别手写数字
查看>>
学习CSS布局 - position例子
查看>>
字符串:朴素字符串匹配
查看>>
学习RMI
查看>>
Vue ajax 同步请求
查看>>