
JS console.log 使用小技巧(多种样式)
1. console.log( ) | info( ) | debug( ) | warn( ) | error( ) 根据事件的类型不同,会带有不同的颜色 console log/info/debug/warn/error 2. 使用占位...

1. console.log( ) | info( ) | debug( ) | warn( ) | error( ) 根据事件的类型不同,会带有不同的颜色 console log/info/debug/warn/error 2. 使用占位...

是由于页面隐藏高度所导致,在懒加载时处理问题(具体问题因人而异,并非全部) 在样式中加入html,body{height:auto} 即可处理 例如在样式最上面加入代码 html,body{height:auto} html { overf...

方法/步骤 首先要使用纯代码统计文章浏览次数。 将以下模板函数放到自己网站模板的模板函数functions.php里;//获取阅读最多的文章 //代码来源:学做网站论坛https://www.xuewangzhan.net/ functi...

Math.floor(),不四舍五入 ,向下取整 注意,不改变数据类型 不四舍五入 向下取整num = Math.floor(num * 100) / 100;console.log(num); //2.44console.log(type...

//加法运算 function floatAdd(arg1,arg2){ } //减法运算 function floatSub(arg1,arg2){ } //乘法运算 function floatMul(arg1,arg2) { } //...

<%@ taglib uri=”http://java.sun.com/jsp/jstl/functions” prefix=”fn”%> <td>...

一、过滤掉所有HTML标签如下: 1 str.innerHTML.replace(/<.*?>/g,"") 二、过滤掉带属性的某一个标签,如<span class=’aa’></span...
前言 还在用图片制作箭头,三角形,那就太lou了。css可以轻松搞定这一切,而且颜色大小想怎么变就怎么变,还不用担心失真等问题。 先来看看这段代码: /**css*/.d1{ width: 0; height: 0; border: 100...


button去掉边框:border:none或outline:noneoutline 这些都不能去掉,因为属性不对,下面代码加上后去除了 button::after { border: none;}