1、改变选中文字的背景和颜色::selection{ /* Safari and Opera */ background:#c3effd; color:#000;}::-moz-selection{ /* Firefox */ background:#c3effd; colo...
分类:
Web程序 时间:
2014-10-10 20:42:04
阅读次数:
279
选择排序(Selection sort)是一种简单直观的排序算法。它的工作原理如下。首先在未排序序列中找到最小(大)元素,存放到排序序列的起始位置,然后,再从剩余未排序元素中继续寻找最小(大)元素,然后放到已排序序列的末尾。以此类推,直到所有元素均排序完毕。本文地址:http://www.cnblo...
分类:
其他好文 时间:
2014-10-09 15:03:23
阅读次数:
190
For i = 1 To ActiveDocument.Tables.Count ActiveDocument.Tables(i).Cell(1, 1).Select With Selection .SelectRow .Font.Bold = True .Shading.BackgroundPat...
分类:
其他好文 时间:
2014-10-09 14:37:13
阅读次数:
209
一、左连接查询 var query = people.GroupJoin(pets, person => person, pet => pet.Owner, (person, petCollection) => ...
分类:
其他好文 时间:
2014-09-30 19:10:49
阅读次数:
150
Selection Sort选择排序The idea of the selection sort is to find the smallest element in the list and exchange it with theelement in the first position. Th...
分类:
其他好文 时间:
2014-09-25 19:44:07
阅读次数:
223
1、获取选中的文字:document.selection.createRange().text; IE9以下使用window.getSelection().toString(); 其他浏览器使用$('p').mouseup(function(){ var txt = window.getSel...
分类:
Web程序 时间:
2014-09-23 20:25:05
阅读次数:
276
CharSequencetext=userName.getText();
if(textinstanceofSpannable){
SpannablespanText=(Spannable)text;
Selection.setSelection(spanText,text.lengt...
分类:
其他好文 时间:
2014-09-21 19:47:31
阅读次数:
196
在一个由n个元素组成的集合中,第i个“顺序统计量(order statistic)”是该集合中第i小的元素。例如,在一个由n个元素组成的集合中,最小值是第1个顺序统计量,最大值是第n个顺序统计量。而“中位数(median)”总是出现在low((n+1)/2)或者high((n+1)/2)处,其中.....
分类:
其他好文 时间:
2014-09-16 20:31:01
阅读次数:
250