摘要: <script> function Deng(name, wife){ var prepareWife = "xiaozhang"; this.name = name; this.wife = wife; this.divorce = function(){ this.wife = prepareW 阅读全文
posted @ 2020-06-01 09:03 桃白白の 阅读(406) 评论(0) 推荐(0) 编辑
摘要: <script> function inherit(Target, Origin){ var F = function(){}; F.prototype = Origin.prototype; Target.prototype = new F(); // son.__proto__ --> new  阅读全文
posted @ 2020-06-01 01:08 桃白白の 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 采用的是相邻边框连接处的均分原理。将元素的宽高设为0,只设置border,把任意三条边隐藏掉(颜色设为transparent),剩下的就是一个三角形。 <style> div{ width: 0; height: 0; border: 20px solid transparent; border-l 阅读全文
posted @ 2020-05-29 10:10 桃白白の 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 网络不好的情况下优先加载html,不加载css,做到网站也能正常使用 方法一:a标签高度设为0,将图片加在padding中把a标签撑开 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</ti 阅读全文
posted @ 2020-05-29 09:48 桃白白の 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 使用border <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> div{ width: 200px; height: 200px; background: 阅读全文
posted @ 2020-05-28 23:46 桃白白の 阅读(406) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/starryqian/archive/2018/09/11/9626309.html https://www.php.cn/css-tutorial-409887.html 阅读全文
posted @ 2020-05-28 16:30 桃白白の 阅读(207) 评论(0) 推荐(0) 编辑