html+css实现ps标尺网页框架特效

 时间:2024-10-11 19:13:38

1、准备好需要用到的图标。

html+css实现ps标尺网页框架特效
html+css实现ps标尺网页框架特效
html+css实现ps标尺网页框架特效

2、新建html文档。

html+css实现ps标尺网页框架特效

3、书写hmtl代艨位雅剖码。<div class="gang" style="margin-left:0px;margin-top:0px;overflow:hidden;position:relative;*margin-top:0px;*top:0px;"><div class="grid" onselectstart='return false;' style="background-color:#FFFFFF; position: absolute; left:18px; top:18px; width:100%;height:2000px;"> </div><div class="hRule" style="width: 1920px;"></div><div class="vRule" style="height: 1200px;"></div><div class="vline1" style="height:1200px;"></div><div class="vline2" style="height:1200px;"></div></div><div id="BGmusic"><div id="Music"> <audio autoplay loop></audio></div><div id="MusicICO"> <div id="MusicPlay"><img src="images/play.png" width="16" height="16"></div> <div id="MusicStop"><img src="images/stop.png" width="16" height="16"></div></div></div><div><span id="clock"></span></div>

html+css实现ps标尺网页框架特效

4、书写css代码。<style>html, body { width: 100%; marg足毂忍珩in: 0 auto; font-size: 12px; overflow: hidden; }#BGmusic { position: absolute; right: 30px; top: 30px; }#Music { position: absolute; overflow: hidden; height: 0px; width: 0px; }#MusicICO, #MusicPlay, #MusicStop { position: absolute; cursor: pointer; }#clock { font-family: "Microsoft Yahei", Tahoma, Helvetica, Arial, sans-serif; color: #333333; position: absolute; right: 0px; Bottom: 0px; }#copyright { font-family: "Verdana", Tahoma, Helvetica, Arial, sans-serif; color: #333333; position: absolute; left: 20px; Bottom: 0px; }a { color: #999999; text-decoration: none; }a:hover { color: #333333; text-decoration: none; }.ruler { background: rgba(255,255,255,1); color: #444; line-height: 14px; overflow: hidden; }.ruler > div { background: #444; }.hRule { position: absolute; width: 100%; height: 18px; left: 18px; top: 0px; background: url(../images/hRule.gif) left top no-repeat; }.vRule { position: absolute; min-height: 100%; width: 18px; left: 0px; top: 18px; background: url(../images/vRule.gif) left top no-repeat; }.grid { position: absolute; top: 0px; left: 0px; background: url(../images/bg.png); }</style>

html+css实现ps标尺网页框架特效

5、代码整体结构。

html+css实现ps标尺网页框架特效

6、查看效果。

html+css实现ps标尺网页框架特效
  • C#如何防止文件夹被删除
  • 十进制RGB颜色和十六进制颜色转化
  • VM软件怎么创建虚拟机
  • Vertus Fluid Mask如何安装?
  • 巴塞电影app在哪里查看版本信息
  • 热门搜索
    青春期手抄报内容 三年级安全手抄报 成长手抄报内容 日行一善手抄报资料 关于语文的手抄报图片 守法手抄报 小学生讲文明手抄报 保护动物手抄报资料 六年级上册手抄报 四年级手抄报内容