10 2015 档案

摘要:要点:定位,隐藏,显示。(一)先建一个两次列表 首页 第二页 one two three ... 阅读全文
posted @ 2015-10-14 16:22 金明爱python 阅读(485) 评论(0) 推荐(0)
摘要:点击下拉列表选项,文体框显示相应的文字$(function () { $('select').change(function () { var ss=$('select option:checked').text(); //把checked换成s... 阅读全文
posted @ 2015-10-12 14:56 金明爱python 阅读(281) 评论(0) 推荐(0)
摘要:css制作最简单导航栏(1)先建一个列表: 网易 搜狐 新浪 优酷 奇蕊 天猫 京东 (2)去掉前面的数字 ol{list-style-type:none} ... 阅读全文
posted @ 2015-10-10 13:47 金明爱python 阅读(1538) 评论(0) 推荐(0)
摘要:$(function () { $('#btn').click(function () { $('ol').append(''+$('#text').val()+''); }); }); 阅读全文
posted @ 2015-10-08 21:33 金明爱python 阅读(365) 评论(0) 推荐(0)
摘要:css代码tr:nth-child(even){background:gray} 选择偶数行tr:nth-child(even){background:gray} 选择奇数行 阅读全文
posted @ 2015-10-08 20:12 金明爱python 阅读(3411) 评论(0) 推荐(0)
摘要:(1) 两个块水平排列将两个块都设为浮动即可。注意不能将两个块的position属性设为absolute(绝对定位) #div1{ background-color: red; float:left; ... 阅读全文
posted @ 2015-10-08 10:59 金明爱python 阅读(194) 评论(0) 推荐(0)
摘要:从0~9中随机产生4个互不相等的数,方法一:import randoms=[]while(len(s)<4): x=random.randint(0,9) if x not in s: s.append(x) print(s)方法二:import random... 阅读全文
posted @ 2015-10-06 16:28 金明爱python 阅读(7681) 评论(0) 推荐(0)