03 2023 档案
摘要:1、CSS选择器 1.1 元素选择器 元素选择器根据元素名称来选择 HTML 元素。 p { text-align: center; color: red; } 1.2 id 选择器 根据id 属性来选择特定元素。 #box { text-align: center; color: red; } 1
阅读全文
摘要:HTML 是用来描述网页的一种语言。 HTML 指的是超文本标记语言 (Hyper Text Markup Language)。 1、HTML 标题 <h1> 定义最大的标题。<h6> 定义最小的标题。 <!DOCTYPE html> <html> <head> <meta charset="utf
阅读全文
摘要:class Singleton{ private Singleton(){ } private static volatile Singleton singleton = null; public static Singleton getInstance(){ if (singleton == nu
阅读全文
摘要:1、折半查找又称为二分查找,仅适用于有序的顺序表。 class BinarySearch{ public int search(int[] a,int k){ int low = 0; int high = a.length-1; int mid; while (low <= high){ mid
阅读全文