摘要: 1. name属性只在少数html元素中有效:包括表单、表单元素、和元素。基于name属性的值选取html元素,可以使用document对象的getElementByName()方法。var radioButtons = document.getElementByName("color");注:在I... 阅读全文
posted @ 2016-01-19 18:16 Viola_left 阅读(197) 评论(0) 推荐(0) 编辑
摘要: html代码:鼠标点击input时,placeholder中的提示信息消失: 阅读全文
posted @ 2016-01-15 11:39 Viola_left 阅读(507) 评论(0) 推荐(0) 编辑
摘要: #contact_info为textarea的ID#contact_info::-webkit-input-placeholder{ color:#999;}#contact_info:-moz-placeholder{ color:#999;}#contact_info::-moz-placeho... 阅读全文
posted @ 2015-12-09 17:28 Viola_left 阅读(198) 评论(0) 推荐(0) 编辑
摘要: W3C网站上jQuery资料整理了一些自己觉得需要记住的jQuery 描述主要的 jQuery 函数是 $() 函数(jQuery 函数)。如果向该函数传递 DOM 对象,它会返回 jQuery 对象,带有向其添加的 jQuery 功能。jQuery 允许您通过 CSS 选择器来选取元素。jQuer... 阅读全文
posted @ 2015-10-14 16:17 Viola_left 阅读(125) 评论(0) 推荐(0) 编辑