静态页面制作步骤

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;
}
View Code
复制代码

 

复制代码

 

posted @   10132714  阅读(546)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示