03 2023 档案

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