- Albin Wong /
- 前端
JS form元素的获取
特殊的属性elements 属于form标签元素var form = document.forms[0]; //elements fs = form.elements;//这个属性只包括了 form元素 修改背景fs[0].style.background = 'red'; name属性来获取var text = form.intro; text.style.background...
特殊的属性elements 属于form标签元素var form = document.forms[0]; //elements fs = form.elements;//这个属性只包括了 form元素 修改背景fs[0].style.background = 'red'; name属性来获取var text = form.intro; text.style.background...
获取元素<style type="text/css"> *{ /*padding:0px; margin:0px;*/ list-style:none; text-decoration:none; font-family:microsoft yahei; } #all{ padding:10px; width:...
<form action=""> </form> <form action=""> </form> <form action=""> </form> <a href="">百度</a> <a href="">天猫</a> <a href="">京东<...
onresizewindow.onresize = function() { console.log(222); } onscroll<div style="height:200px;width:100px;background:orange;position:absolute;right:0px;top:200px;"></div> <scrip...
XMLXML : 可扩展的文本标记语言 Extensible Markup Language 整个文是一个文档节点每个XML标签是一个元素节点包括在xml元素中的文本是文本节点每一个xml属性是一个属性节点注释属于节点 e.g.<?xml version='1.0' encoding='utf-8'?> <movies> <movie&g...
<input type="text" name="username" value="this is a test"><br> 性别: <input type="radio" name="sex" value="1" checked>男 <input type="radio" name="sex" value="0" >女<br>...
div{ width:200px;height:200px;background:orange } .active{ border:solid 10px #ddd; background:black; } <div title='test' style="" onmouseout="this.style.background = 'orange'...
form元素的获取<form action=""> <span>用户名</span><input type="text" name="username"> <b>密码</b><input type="radio" name="sex"> <input type="checkbox...
jquery 给同类的元素绑定事件,不影响其他元素第一种方法$('.allprice').click(function(){ var row = $(this).parents('tr').siblings().css('diplay'); if(row == 'none'){ $(this).parents('tr').siblings().css('dis...
<style type="text/css"> #content { width:800px; height:500px; border:solid 1px #ddd; margin: 0 auto; } .item{ width:100px; he...