因为text-decoration的值可以叠加,所以即使设置了none,浏览器也是看成是叠加,而不是清除的意思.…
打开顶部菜单栏:进入 Preferences => Settings-User修改如下: {"hot_exit": false,"remember_open_files": false,} 更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/119905890…
什么是CSS清除浮动? 在非IE浏览器(如Firefox)下,当容器的高度为auto,且容器的内容中有浮动(float为left或right)的元素,在这种情况下,容器的高度不能自动伸长以适应内容的高度,使得内容溢出到容器外面而影响(甚至破坏)布局的现象.这个现象叫浮动溢出,为了防止这个现象的出现而进行的CSS处理,就叫CSS清除浮动. 引用W3C的例子,news容器没有包围浮动的元素. .news { background-color: gray; border: solid 1px blac…
计算缓存文件大小 - (void)getCacheSize { // 总大小 unsigned long long size = 0; // 获得缓存文件夹路径 NSString *cachesPath = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES).lastObject; NSString *dirpath = [cachesPath stringByAppendingPathCom…
这是在其他地方看到的一篇文章,汇总的不错,摘过来做个记录. 引用地址 : http://www.cnblogs.com/ForEvErNoME/p/3383539.html ----------------------------------以下是原文 什么是CSS清除浮动? 在非IE浏览器(如Firefox)下,当容器的高度为auto,且容器的内容中有浮动(float为left或right)的元素,在这种情况下,容器的高度不能自动伸长以适应内容的高度,使得内容溢出到容器外面而影响(甚至破坏)布…
CSS Text 1> Text Color used to set the color of the text 2> Text Alignment used to set the horizontal alignment of a text text-align: left|right|center|justify|initial|inherit; 3> Text Decoration used to set or remove decorations from text text-d…
继承是面向对象语言一个非常重要的部分.许多OOP语言都支持接口继承和实现继承两种方式.接口继承:继承方法签名:实现继承:继承实际的方法.在ECMAScript中函数是没有签名的,所以也就无法实现接口继承,只能支持实现继承. 在JavaScript中有大概六种继承方式,它们分别是:原型链继承,借用构造函数继承,组合继承,原型式继承,寄生式继承和寄生组合式继承.下面就是对着六种继承方式的详细介绍. 1.原型链 基本思想是利用原型让一个引用类型继承另一个引用类型的属性和方法.在这里还得补充一下,每个构…
<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>prototypeInherit</title>    <script type="text/javascript">    //原型式继承:实质上就是类式继承的函数封装(但有缺陷)    function inher…
<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>prototypeInherit</title>    <script type="text/javascript">    //原型式继承:实质上就是类式继承的函数封装(但有缺陷)    function inher…
<script type="text/javascript"> //类式继承(构造函数) var father = function(){ this.age = 52; this.say =function(){ alert('hello i am'+this.name+'and i am'+this.age+'years old') } } var child = function(){ this.name = 'bill'; father.call(this); } v…