静态页面制作步骤
1. 步骤
1. 目录结构 project文件夹 index.html/default.html:入口文件 css文件夹 js文件夹 images文件夹 2. 页面设计图 3. 确定开发方式 1. 从上到下的方式:适合新手 2. 先确定结构,再填充内容:适合老手 4. css初始化(清除浏览器中标签的默认样式)

/* 存放css初始化的代码 */ html,body,ul,li,p,h1,h2,h3,form,img { margin: 0; padding: 0; } img { border: none; } ul { /*去掉列表的圆点*/ list-style: none; } input { padding-top: 0; padding-bottom: 0; border: none; } a { text-decoration: none; } body { font: normal normal 12px "宋体"; color: #4c4c4c; background-color: #fae8c8; } .fl { float: left, } .fr { float: right; } .clearfix:after { content: ""; height: 0; line-height: 0; display: block; visibility: hidden; clear: both; } .clearfix { zoom: 1; }
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构