摘要: 代码部分 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Docu 阅读全文
posted @ 2024-01-30 16:21 厚礼蝎 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 背景 background复合属性 字体 font复合属性 字体 body { /*字体系列,从前往后使用 'microsoft yahei'微软雅黑 'simsun'宋体 */ font-family:'Times New Roman', Times, serif; /*大小*/ font-siz 阅读全文
posted @ 2024-01-30 16:19 厚礼蝎 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 我们在布局或者设置字体大小的时候经常看到: 22px;, px其实是css里面长度单位 绝对长度 px * 像素 (1px = 1/96th of 1in) cm 厘米 mm 毫米 in 英寸 (1in = 96px = 2.54cm) 相对长度 em 它是描述相对于应用在当前元素的字体尺寸,所以它 阅读全文
posted @ 2024-01-30 15:57 厚礼蝎 阅读(7) 评论(0) 推荐(0) 编辑