上一页 1 ··· 47 48 49 50 51
摘要: 代码: <!DOCTYPE html> <html> <!-- 如果需要选择紧接在另一个元素后的元素,而且二者有相同的父元素,可以使用相邻兄弟选择器(Adjacent sibling selector) --> <head> <meta charset="utf-8"> <title>相邻兄弟选择器 阅读全文
posted @ 2021-08-12 22:52 李林林 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>子选择器</title> <link rel="stylesheet" href="../css/006.css"> </head> <body> <p>p1</p> <p 阅读全文
posted @ 2021-08-12 22:50 李林林 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 001层次选择器(分类002-005): 002:后代选择器:在某个元素后面 {祖爷爷 爷爷 爸爸 我} /*后代选择器*/ body p{ background: aquamarine; } 子选择器 003:子选择器 /*子选择器*/ body>p{ background: brown; } 0 阅读全文
posted @ 2021-08-12 22:45 李林林 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 002.后代选择器 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>后代选择器</title> <link rel="stylesheet" href="../css/005.css"> </head> <body> <p>p1 阅读全文
posted @ 2021-08-12 22:39 李林林 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 代码实现:给一个内部类对象,如何通过反射,去获取所依靠的外部类对象的某个成员变量并打印出来。 public class A { int age=10; class B { } } public class Main { public static void main(String[] args) t 阅读全文
posted @ 2021-08-12 21:35 李林林 阅读(434) 评论(0) 推荐(0) 编辑
上一页 1 ··· 47 48 49 50 51