1、鼠标放在圆形图片中,图片渐渐的变方形【17素材头像的特效,觉得不错就研究下来了 ————17sucai.com】img{border-radius:50%;transition: all .4s ease-out;}a:hover img{border-radius:0px;}2、当鼠标放到菜单...
分类:
Web程序 时间:
2014-10-08 13:55:45
阅读次数:
224
1.The model backing the 'MusicStoreDBContext' context has changed since the database was created.Consider using Code First Migrations to update the da...
分类:
Web程序 时间:
2014-10-08 14:43:05
阅读次数:
244
一、foreach binding使用此功能可以方便我们循环遍历输出某个数组、集合中的内容。(1)、循环遍历输出数组View Row Code1 23 4 5 First nameLast name 6 7 8 9 10 11 12 13 14 15 (2)、动态增加和删除遍历节...
分类:
Web程序 时间:
2014-10-08 13:02:55
阅读次数:
260
核心提示:jquery选择器得到的jquery对象和标准的 javascript中的document.getElementById()取得的dom对象是两种不同的对象类型,一般情况下,如S(’#id’)得到的是jquery对象,它不能使用js中的dom方法。所以,如果jquery对象要使用标准的do...
分类:
Web程序 时间:
2014-10-08 14:08:25
阅读次数:
167
CSS样式: .f1 img{border-radius:50%;transition: all .4s ease-out;}.f1 a:hover img{border-radius:0px;}.f2 a{transition:all 0.4s ease-out 0s;color:#000;} ....
分类:
Web程序 时间:
2014-10-08 13:16:45
阅读次数:
548
原文:http://www.cnblogs.com/leefreeman/p/3998757.html另:http://www.cnblogs.com/leefreeman/p/3585032.html怎样编写高质量的java代码1. dns解析速度2. 网络连接速度(不同地区IDC, 不同网络间使...
分类:
Web程序 时间:
2014-10-08 14:06:35
阅读次数:
242
1. basename()返回路径的文件名部分$path='C:\AppServ\www\test\test.php';echo basename($path);//结果:test.php2. dirname()返回路径的目录部分$path='C:\AppServ\www\test\test.php...
分类:
Web程序 时间:
2014-10-08 14:23:05
阅读次数:
252
首先我们要明确单例模式这个概念,那么什么是单例模式呢?单例模式顾名思义,就是只有一个实例。作为对象的创建模式, 单例模式确保某一个类只有一个实例,而且自行实例化并向整个系统提供这个实例,这个类我们称之为单例类。单例模式的要点有三个: 它们必须拥有一个构造函数,并且必须被标记为private 它们拥有...
分类:
Web程序 时间:
2014-10-08 14:39:15
阅读次数:
234
UrlHelper提供了四个非常常用的四个方法,1.Action方法通过提供Controller,Action和各种参数生成一个URL,2.Content方法是将一个虚拟的,相对的路径转换到应用程序的绝对路径,3.Encode方法是对URL地址进行加密,与Server.Encode方法一样。4.Ro...
分类:
Web程序 时间:
2014-10-08 14:05:25
阅读次数:
250
PHP类常量的常见访问方法class Math { const num=3.14; public function showNum(){ return self::num; }}echo Math::num."";$math=new Math();echo $math->showNum();结果:....
分类:
Web程序 时间:
2014-10-08 14:20:35
阅读次数:
204
1. preg_match()函数 preg_match()函数在字符串中搜索模式,如果存在则返回true,否则返回false $pattern='/php/'; $str='php100.com'; echo preg_match($pattern,$str); 输出结果:12. preg_g.....
分类:
Web程序 时间:
2014-10-08 14:36:45
阅读次数:
214
1. imagecreatetruecolor() 新建一个真彩色图像resource imagecreatetruecolor ( int x_size, int y_size )imagecreatetruecolor() 返回一个图像标识符,代表了一幅大小为 x_size 和 y_size 的...
分类:
Web程序 时间:
2014-10-08 14:03:15
阅读次数:
200
一、.NET截取指定长度汉字超出部分以“.....”表示/// /// 将指定字符串按指定长度进行剪切, /// /// 需要截断的字符串 /// 字符串的最大长度 /// 超过长度的后缀 /// 如果超过长度,返回截断后的新字符串加上后缀,否则,返回原字符串 public st...
分类:
Web程序 时间:
2014-10-08 13:28:45
阅读次数:
204
PHP冒泡与快速排序法
快速排序法:
function sortArray($arr){
$count=count($arr);
for($i=0;$i$arr[$j]){
$tem=$arr[$i];
$a...
分类:
Web程序 时间:
2014-10-08 13:11:35
阅读次数:
197
JS加入收藏夹
function addfavorite()
{
if (document.all)
{
window.external.addFavorite(‘http://www.baidu.com’,'收藏夹’);
}
else if (window.sidebar)
{
window.sidebar.addPanel(‘百度一下’, ‘http://www.ba...
分类:
Web程序 时间:
2014-10-08 11:28:55
阅读次数:
166
项目中需要用到CXF做WS处理,花点时间对其有个简单认识,主要是在安全认证以及日志记录和异常处理这块有要求控制。...
分类:
Web程序 时间:
2014-10-08 11:27:25
阅读次数:
276