
笔记
Mr.Ykq
加油!
展开
-
父级边框塌陷
父级边框塌陷的问题 clear属性可以清除浮动对其他元素造成的影响,解决不了父级边框塌陷问题 1.设置父类的高度 #father{ height:400px; } 2.添加一个空的div <div class="clear"></div> .clear{ clear: both; margin: 0; padding: 0; } 3.父类添加overflow overflow:hidden 4.父类添加一个伪类 #father:after{原创 2020-10-17 14:44:35 · 203 阅读 · 0 评论 -
java方法
java方法 方法调用 public class Demo01 { //main方法 public static void main(String[] args) { //实际参数:实际调用传递给他的参数 int sum= add(1,2); System.out.println(sum); //test(); } //加法 //形式参数,用来定义作用 public sta原创 2020-10-06 18:24:39 · 389 阅读 · 0 评论