html5dom2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.d1{
background: green;
color: red;
padding: 15px;
text-align: center;
}
.d2{
border:2px solid orange;
font-size: 30px;
height: 50px;
}
</style>
</head>
<body>
<h4 id="bt" class="bt cc">休息休息</h4>
<a id="aid" href="http://www.baidu.com" target="_self" title="">百度</a>
<input type="text" id="xh" class="xh" value="123456"><br>
<input type="text" id="xm" class="xingm" value="熊二"></input><br>
<input type="text" id="sxcj" class="sxcj" name="fs" value="60"></input><br>
<input type="text" id="yycj" class="yycj" name="fs" value="70"></input><hr>
<input type="button" value="单机" onclick="myfun1()">
<input type="button" value="单机" onclick="myfun2()">
<input type="button" value="单机" onclick="myfun3()">
<input type="button" value="单机" onclick="myfun4()">
<script>
var bb=document.getElementById('bt');
var fs=document.getElementsByName('fs');
var inp=document.getElementsByTagName('input');
var a1=document.getElementById('aid');
// bt.innerHTML='学生信息<em>查询</em>';
// alert(fs[0].id);
// alert(fs[1].value);
// alert(fs[0].className);
function myfun1(){
a1.innerHTML='163';
a1.target='_blank';
a1.href='http://www.163.com';
a1.style.color='#00f';
}
function myfun2(){
inp[0].value='88888';
inp[1].value='gouxing';
fs[0].value='90';
fs[1].value='100';
inp[0].style.background='red';
}
function myfun3(){
bb.style.textShadow='2px 3px 3px #ff0000';
bb.style.fontSize='40px';
bb.style.background='rgba(150,50,25,0.2)';
}
function myfun4(){
bb.className='d1'+' '+'d2';
}
</script>
</body>
</html>
html5dom2的更多相关文章
随机推荐
- MySQL 5.7.14安装说明,解决服务无法启动
http://jingyan.baidu.com/article/f54ae2fc0affca1e92b84999.html http://www.myexception.cn/mysql/51431 ...
- oneNote2016代码高亮插件
下载地址:https://github.com/elvirbrk/NoteHighlight2016/releases 安装插件前必须安装oneNote笔记. NoteHighlight插件有32位和 ...
- 安装 VMWare ESXi 6.7:VMB: 548: Unsupported CPU:6.7版本的ESXi 不支持 某些cpu了
如题,谨记! 升级是双面刃! 用6.5--版本,即可.
- JVM可达性分析算法中,哪些可以作为 root ?
被启动类(bootstrap 加载器)加载的类和创建的对象: JavaStack 中的引用的对象 (栈内存中引用的对象): 方法区中静态引用指向的对象: 方法区中常量引用指向的对象: Native 方 ...
- SpringBoot入坑-配置文件使用
经过上一篇的介绍,相信小伙伴们已经按奈不住内心对springboot的向往,本篇我将继续向小伙伴介绍springboot配置文件的配置,已经全局配置参数如何使用,好了下面开始我们今天的内容介绍. 我们 ...
- linux的shadow文件
在<Python绝技>这本书的第一个小程序首先展示了针对与unix系统中shadow文件密码的暴力破解的能力,因为之前只是对shadow文件停留在保存了用户密码的阶段,但并没有详细研究,所 ...
- ffmpeg 转换 mp4 成 flv
参考资料: https://addpipe.com/blog/flv-to-mp4/ ffmpeg -i demo.mp4 -c:v libx264 -crf 19 demo.flv 或者 ffmpe ...
- js字符串转数字(小数),数字转字符串
将字符串转化为小数并加法计算,然后保留两位小数 (parseFloat(that.data.pay_price) + parseFloat(that.data.qiandao)).toFixed(2) ...
- 剑指offer——python【第14题】链表中倒数第k个节点
题目描述 输入一个链表,输出该链表中倒数第k个结点. 思路 注意,看清楚,是输出节点,而不是输出节点值 可以先求出链表总长度,然后正向遍历得到第n个节点 解答 class Solution: def ...
- Python学习之旅(十三)
Python基础知识(12):函数(Ⅲ) 高阶函数 1.map map()函数接收两个参数,一个是函数,一个是Iterable,map将传入的函数依次作用到序列的每个元素,并把结果作为新的Iterat ...