html网页模板

网页主题名称:【代码有灰】

版本:v1.0

作者:匿名的灰

发布日期:2017/8/8

------------------------------------------华丽的分割线------------------------------------------

网页截图

PC端:

手机端:

------------------------------------------华丽的分割线------------------------------------------

模板介绍

该模板为纯HTML模板,不包含任何服务器端code,模板中只有首页index.html一个页面,PC端和手持端自适应,即响应式布局,网页的目录结构为:images、css、js、fonts,网页采用div+css布局, h5标签开发和扁平化设计,该网页适合h5初学者下载学习。

------------------------------------------华丽的分割线------------------------------------------

浏览器兼容

Chrome、Firefox、IE、Safari

PS:测试最多的是Chrome和Firefox浏览器

------------------------------------------华丽的分割线------------------------------------------

关键代码解析

全局css样式:

html, body{
    font:12px 微软雅黑,宋体,Arial,sans-serif;
    font-size: 100%;
  background: #FFf;
}

我的工作经验/位置调整css:

ul.year li {
     list-style: none;
    margin-top:30px;
    font-size: 1em;
    color: #fff;
    text-align: center;
    background: #1b242f;
    padding: 11px 0;
    width:60%;
    display: block;
}
ul.year li:nth-child(2){
   margin-top: 119px;
}
ul.year li:nth-child(3){
   margin-top: 129px;
}
ul.year li:nth-child(4){
   margin-top: 116px;
}
ul.year li:nth-child(5){
   margin-top: 112px;
}

菜单鼠标悬浮下划线效果:


原来采用data-hover实现中文展示,由于中文支持有问题因此采用下划线实现,代码如下:

.link-effect-3 a {
padding: 10px 0;
margin: 0 12px;
color: #797878;
text-shadow: none;
position: relative;  
    font-family: 'Open Sans', sans-serif;
}
.link-effect-3 a::after {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
padding: 10px 0;
max-width: 100%;
border-bottom: 0px solid #00a78e;
    color: #00a78e;
content: attr(data-hover);
-webkit-transition: max-width 0.5s;
-moz-transition: max-width 0.5s;
transition: max-width 0.5s;
}
.link-effect-3 a:hover::after {
border-bottom: 3px solid white;
color:white;
}

------------------------------------------华丽的分割线------------------------------------------

网页变更历史

#修改【我的工作经验】页面布局

#修复中文字体和显示的问题

------------------------------------------华丽的分割线------------------------------------------

 

  • 1
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

周末简设

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值