发表于: 2019-11-16 20:58:04

1 1123


今天完成的事情:基本完成了任务九,修改了一下在响应式布局下的bug,学习了一下锚点标记
明天计划的事情: 继续后面的任务
遇到的问题:调整页面花费较长时间
收获:今天学习了一下锚点标记,举一个简单的例子

<a name="hello">Hello</a>
xxxxx
xxxxx
<a href="#hello">点击这里跳转到Hello处</a>

这个就是一个简单的锚点标记,用这个可以定向跳转到页面的一些位置,也可以跨页面跳转,a标签里面的href加上 另一个页面的地址 然后后面加#hello就可以了

用这个做了三个页面间的跳转,三个页面的效果图

点击首页的几个项目可以跳转,第二个页面

第三页的部分

css代码

.d1{
    displaynone;
}
.x1{
    displayblock;
    cursorpointer;
}
.d2{
    displaynone;
}
.d2 a{
    width100%;
    displayblock;
    margin0 auto;
}

#menu1{
    height50px;
    width50px;
    backgroundurl(./8/QQ20191113144045.png);
    displayblock;
    cursorpointer;
}
#menu:checked ~ .d2{
    displayblock;
}
.m1{
    displayflex;
    flex-directionrow-reverse;
}
.d6{
    height800px;
    flex-directioncolumn;
    align-itemscenter;
}
.d61{
    width50%;
}
.dd6{
    flex-directioncolumn;
    align-itemscenter;
    height500px;
    bordernone;
}
.d8{
    flex-directioncolumn;
    align-itemscenter;
    height350px;
    justify-contentspace-around;
}
.d11{
    flex-directioncolumn;
    align-itemscenter;
}
.d111{
    margin-right0;
    width80%;
    margin-bottom10px;
}
.d12{
    displaynone;
}
.d14{
    flex-directioncolumn;
    align-itemscenter;
}
.db{
    flex-directioncolumn;
}
.zb{
    padding-left0px;
}
.db .yb p{
    text-alignleft!important;
}
.c0{
    height1000px;
}
.t1{
    height301.94px;
}
.b2{
    padding-right0px;
}
.d62{
    padding55px 0 0 0;
}
.d4 .l1{
    padding-left0px;
}
.d4 .l1 li{
    list-stylenone;
    padding-right4px;
}

全写在了一个css文件里,重复利用减少文件数量,明天继续后续的任务



返回列表 返回列表
评论

    分享到