上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: 样式: a{ text-decoration: none; color: inherit; } .out-cp{ width:100%; text-align: center; } .c-page{ display:inline-block; height:42px; margin:50px 0 ; 阅读全文
posted @ 2019-11-13 07:39 cl94 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 问题背景: 在router.php路由配置文件设置了二级域名和路由设置 use think\Route; Route::domain('www','index'); Route::domain('admin','admin'); Route::domain('m','m'); Route::rule 阅读全文
posted @ 2019-10-26 22:06 cl94 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: getMessage(); $a = -1; } echo $a; // Warning: Division by zero in C:\phpStudy\PHPTutorial\WWW\phpmain\demo.php on line 10 /* * 由以上运行结果可以看到,对于除零这种"异常"情况,PHP认为这是一种错误,直接触发错误,而不会自动抛出异常 * 使程序进入异常流程,... 阅读全文
posted @ 2019-08-16 07:14 cl94 阅读(232) 评论(0) 推荐(0) 编辑
摘要: getMessage(); $a = -1; } echo $a; // Warning: Division by zero in C:\phpStudy\PHPTutorial\WWW\phpmain\demo.php on line 10 /* * 由以上运行结果可以看到,对于除零这种"异常"情况,PHP认为这是一种错误,直接触发错误,而不会自动抛出异常 * 使程序进入异常流程,... 阅读全文
posted @ 2019-08-16 07:14 cl94 阅读(191) 评论(0) 推荐(0) 编辑
摘要: name,'is',$this->gender; } } $student = new Person(); $student->name = "CL"; $student->gender = "MAN"; $student->say(); // CLisMAN var_dump((array)$student); // array(2) { ["name"]=> string(2) "... 阅读全文
posted @ 2019-08-13 07:46 cl94 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 1,透明边框 默认状态下,背景会延伸到边框区域的下层。这样就在半透明的黑色边框中透出了这个容器自己的纯白色背景。 谢天谢地,从w3c的背景与边框第三版开始,我们可以通过 background-clip 属性来调整上述默认行为导致的不便。 background-clip : border-box (默 阅读全文
posted @ 2019-08-11 18:37 cl94 阅读(643) 评论(0) 推荐(0) 编辑
摘要: px : Pixel像素单位。像素是相对显示器分辨率而言。em : 相对长度单位,基准点为父节点字体的大小,如果自身定义了font-size按自身来计算(浏览器默认字体是16px)。rem : 相对单位,可理解为 "root em" ,相对于根节点html的字体大小来计算,css3新加属性。如果没有 阅读全文
posted @ 2019-08-11 07:52 cl94 阅读(216) 评论(0) 推荐(0) 编辑
摘要: @charset "utf-8"; /* CSS Document */ *{ padding: 0; margin: 0; } ul,li{ list-style: none; } a{ text-decoration: none; color: inherit; } textarea,input{ outline: none; bord... 阅读全文
posted @ 2019-08-05 10:44 cl94 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 函数表达式的特征 函数表达式是js中一种既强大又容易令人困惑的特性。定义函数的方式有两种:一种是函数声明,另一种是函数表达式. function functionName(arg0,arg1,arg2){ // 函数体 } console.log(functionName.name); ... 阅读全文
posted @ 2019-08-03 09:49 cl94 阅读(2322) 评论(0) 推荐(0) 编辑
摘要: 继承是oo语言中一个最为人津津乐道的概念。ECMAScript支持实现继承,而且实现继承只要是靠原型链来实现的·原型链 其基本思想是利用原型让一个引用类型继承另一个引用类型的属性和方法。 简单回顾一个构造函数,原型和实例的关系:每个构造函数都有一个原型对象,原型对象都包含一个指向构造函数的指针,而实例都包含一个指向原型对象的 内部指针。那么,假设我们让原型对象等于另一个类... 阅读全文
posted @ 2019-07-29 07:45 cl94 阅读(171) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页