关于priority_queue1,关于STL中的priority_queue:确定用top()查看顶部元素时,该元素是具有最高优先级的一个元素. 调用pop()删除之后,将促使下一个元素进入该位置.2,如同stack和queue,priority_queue是一个基于基本序列容器进行构建的适配器,...
分类:
其他好文 时间:
2014-08-13 14:25:36
阅读次数:
363
问题描述:IE7下 img与div(block类型元素)下边界有距离(或者叫缝隙、空隙)。IE7才会有这个问题,IE8下是没有的。解决方案:法宝一:定义图片img标签vertical-align:bottom,vertical-align:middle,vertical-align:top。img{...
分类:
其他好文 时间:
2014-08-13 12:56:56
阅读次数:
167
1. 伪类 :after 1. 清楚浮动div:after{ overflow:hidden; } 2. 制作三角形div:after{ content:''; display:block; width:0; border-top:8px solid #000; border-left:8p...
分类:
移动开发 时间:
2014-08-13 12:56:26
阅读次数:
234
SELECT TOP 10 * FROM citys WHERE (city_id NOT IN (SELECT TOP 30 city_id FROM citys where country_id=44 and parent_id=0 ORDER BY city_id)) and country....
分类:
数据库 时间:
2014-08-13 12:35:16
阅读次数:
190
由于项目需要,写了个返回顶部的小功能... 1 /*返回顶部*/ 2 function toTop() { 3 $(".to_top").hide(); 4 $(window).scroll(function(){ 5 var ...
分类:
Web程序 时间:
2014-08-13 12:23:26
阅读次数:
221
1.ps -ef| grep XXXXXX进程号ls -l /proc/$PID/exe 哪个脚本产生的进程ls -l /proc/$PID/cwd 进程所运行的目录2.ps 命令参数 -e 显示所有进程 -f 显示完整的格式列表 3.top命令 ...
分类:
其他好文 时间:
2014-08-12 21:47:24
阅读次数:
384
核心代码:$('#top li').click(function(){var index=$('#top li').index(this);$('#top li:eq('+index+')').addClass('cur').siblings('li').removeClass('cur');$('...
分类:
Web程序 时间:
2014-08-12 21:36:54
阅读次数:
274
TIOBE的那个榜单太假了
我帮大家搜集了一下
IEEE Spectrum’s 2014 Ranking
This app ranks the popularity of dozens of programming languages. You can filter them by listing only those most relevant to particular sector...
分类:
其他好文 时间:
2014-08-12 17:29:24
阅读次数:
260
.pop_overlay{ width: 100%; height: 100%; background: #c2c2c2; opacity: 0.5; filter:alpha(opacity=50); position: fixed; z-index: 1; left: 0; top:0; dis...
分类:
其他好文 时间:
2014-08-12 16:47:14
阅读次数:
189
TIOBE排行太坑爹,我找到了IEEE的榜单,看了下,和心里的定位差不多。。。This app ranks the popularity of dozens of programming languages. You can filter them by listing only those mos...
分类:
编程语言 时间:
2014-08-12 16:34:14
阅读次数:
225