2016年5月3日
摘要: var myDate = new Date();myDate.getYear(); //获取当前年份(2位)myDate.getFullYear(); //获取完整的年份(4位,1970-????)myDate.getMonth(); //获取当前月份(0-11,0代表1月)myDate.getDa 阅读全文
posted @ 2016-05-03 11:15 爱海滔滔 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 案例: <html><head><script type="text/javascript">function loadXMLDoc(){var xmlhttp;if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, 阅读全文
posted @ 2016-05-03 11:12 爱海滔滔 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 选择器例子例子描述CSS .class .intro 选择 class="intro" 的所有元素。 1 #id #firstname 选择 id="firstname" 的所有元素。 1 * * 选择所有元素。 2 element p 选择所有 <p> 元素。 1 element,element 阅读全文
posted @ 2016-05-03 11:00 爱海滔滔 阅读(185) 评论(0) 推荐(0) 编辑
摘要: :first-letter 用于向文本的首字母设置特殊样式 :before" 可以在元素的内容前面插入新内容 阅读全文
posted @ 2016-05-03 10:45 爱海滔滔 阅读(108) 评论(0) 推荐(0) 编辑
摘要: [attribute] 包含attribute属性 的所有文本 [attribute=value] attribute属性值为value 的所有文本 [attribute~=value] attribute属性值 包含 value [attribute|=value] attribute属性值 头部 阅读全文
posted @ 2016-05-03 10:40 爱海滔滔 阅读(112) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-05-03 08:56 爱海滔滔 阅读(2) 评论(0) 推荐(0) 编辑