代码例子如下 public class Father{ private int i = test(); private static int j = method(); static{ System.out.print("(1)"); } Father(){ System.out.print("(2 ...
分类:
其他好文 时间:
2021-03-09 13:44:24
阅读次数:
0
浮动,就是使元素脱离标准流,移动到其父元素指定的位置的过程,包括float: left float: right; 浮动常见的问题: 1.浮动的子元素无法超出父元素的范围; <head> <style type="text/css"> #father { width: 200px; height: ...
分类:
Web程序 时间:
2021-02-27 13:17:54
阅读次数:
0
凡凡题解 ##ST表 \(f[i][j]\) 表示从 \(i\) 结点向上走到的第 \(2^j\) 个结点 \(f[i][0] = father[i]\),\(f[i][j] = f[f[i][j-1]][j-1]\) (先走 \(2^{j-1}\) 步,再走 \(2^{j-1}\) 步) void ...
分类:
其他好文 时间:
2021-02-24 12:50:19
阅读次数:
0
问题描述 需求要一个列表,列表中所有元素不能换行,每一个元素包括一个table。 分析问题 可以使用一个ul然后让li浮动,这样的结果是当li过长会换行,为了不让li换行可以动态计算所有长度之和作为ul的长度 问题解决 <div class="father"> <ul class="clearfix ...
分类:
其他好文 时间:
2021-02-08 12:20:24
阅读次数:
0
方法一 props传参 父组件 1. <template> 2. <div class="wrap"> 3. <div>我是Father组件</div> 4. <Son 5. str="我是字符串" 6. :num=5 7. :obj="{cont:'我是一个对象'}" 8. :func="()=> ...
分类:
其他好文 时间:
2021-01-29 12:04:52
阅读次数:
0
class father { //定义father类 public function getMethod() { //定义方法 $this->method(); } public function method() { //定义方法 echo '<br />father method'; } } c ...
分类:
Web程序 时间:
2020-12-28 11:40:40
阅读次数:
0
<style type="texts">.*{ margin:0; padding:0; }.father{ position:relative; width:600px; height:400px; background:#F96; margin:50px auto; } .box1,.box2, ...
分类:
其他好文 时间:
2020-12-05 11:10:03
阅读次数:
6
相对定位与绝对定位的练习 .father{ width:600px; height:400px; background:#F63; margin:50px auto; position:relative; } .box1,.box2,.box3,.box4{ width:80px; height:6 ...
分类:
Web程序 时间:
2020-12-04 11:47:25
阅读次数:
23
闭包是什么? <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div> <button id="father" onclick="add()">计数 ...
分类:
其他好文 时间:
2020-11-27 11:18:25
阅读次数:
9
父类: public class Parent { //看这里的this指的是什么 public Parent() { this.say(); } protected void say() { System.out.println("father"); } } 子类: public class Su ...
分类:
其他好文 时间:
2020-11-21 12:40:44
阅读次数:
24