摘要: 基本的HTML文档格式 9行,5个对标记,3层关系 第一行为声明 通过引入外部样式文件,将网页背景设置为红色 主文件中加入: css文件: body{ background-color: red: ​ color: gold; } 应用场景:定义本文件80%的应用场景 通过内部样式定义: ​ col 阅读全文
posted @ 2026-03-19 16:31 伊兹帕鲁特 阅读(2) 评论(0) 推荐(0)
摘要: 二 实时系统时间显示 <script> // 获取显示时间的DOM元素 const timeElement = document.getElementById('currentTime'); // 定义格式化时间的函数 function formatTime() { // 创建当前时间对象 const 阅读全文
posted @ 2026-03-14 13:21 伊兹帕鲁特 阅读(4) 评论(0) 推荐(0)