高仿Windows 98主题的CSS样式库

开发 前端
windows_98.css是一个简单的CSS脚本,它可以实现Windows 98主题风格的对话框和下拉菜单,与Windows 98主题的仿真度非常高。如果在现代的网页上出现Windows 98的风格,是不是回给人一种怀念的感觉。

windows_98.css是一个简单的CSS脚本,它可以实现Windows 98主题风格的对话框和下拉菜单,与Windows 98主题的仿真度非常高。如果在现代的网页上出现Windows 98的风格,是不是回给人一种怀念的感觉。

演示地址:http://static.codeceo.com/demo/201507/windows-98-css/index.html

对话框

CSS代码:

  1. .win98 .window { 
  2.   background#bfbfbf
  3.   border1px solid
  4.   border-top-color#dfdfdf
  5.   border-left-color#dfdfdf
  6.   border-right-color#808080
  7.   border-bottom-color#808080
  8.   box-shadow: 1px 1px 0 0 #000
  9.   width400px
  10. .win98 .window .content { 
  11.   padding7px 10px
  12. .win98 .window .header { 
  13.   margin2px 2px 0
  14.   padding1px 2px
  15.   color#fff
  16.   background: -webkit-linear-gradient(left#000080#1084d0); 
  17.   background: linear-gradient(to right#000080#1084d0); 
  18.   font-weightbold
  19.   font-size11px
  20.   line-height16px
  21. .win98 .window .header .icon { 
  22.   width16px
  23.   height16px
  24.   floatleft
  25.   margin-right2px
  26. .win98 .window .header .buttons { 
  27.   height14px
  28.   floatright
  29. .win98 .window .header .buttons button { 
  30.   vertical-aligntext-top
  31.   font-weightbold
  32.   line-height12px
  33.   padding0
  34.   height14px
  35.   width14px

下拉菜单

CSS代码:

  1. .win98 .menu { 
  2.   background#bfbfbf
  3.   border1px solid
  4.   border-top-color#dfdfdf
  5.   border-left-color#dfdfdf
  6.   border-right-color#808080
  7.   border-bottom-color#808080
  8.   box-shadow: 1px 1px 0 0 #000
  9.   zoom: 1
  10.   width195px
  11.   font-size13px
  12.   padding1px
  13.   positionrelative
  14. .win98 .menu:before, 
  15. .win98 .menu:after { 
  16.   content""
  17.   display: table; 
  18. .win98 .menu:after { 
  19.   clearboth
  20. .win98 .menu >.menu-content { 
  21.   floatright
  22. .win98 .menu .menu-sidebar { 
  23.   background: -webkit-linear-gradient(top#000080#1084d0); 
  24.   background: linear-gradient(to bottom#000080#1084d0); 
  25.   positionabsolute
  26.   width25px
  27.   height100%
  28. .win98 .menu .menu-sidebar .headline { 
  29.   -webkit-transform: rotate(270deg); 
  30.   -ms-transform: rotate(270deg); 
  31.   transform: rotate(270deg); 
  32.   positionabsolute
  33.   bottom: 40px
  34.   left: -32px
  35.   width100px
  36.   height30px
  37.   font-size16px
  38.   color#fff
  39. .win98 .menu .menu-content { 
  40.   margin0
  41.   padding0
  42.   border0
  43.   outline0
  44.   color#000
  45.   list-stylenone
  46.   margin2px 0
  47.   width170px
  48. .win98 .menu .menu-content .divider { 
  49.   margin7px 6px
  50.   border-top1px solid #808080
  51.   border-bottom1px solid #dfdfdf
  52. .win98 .menu .menu-content .item { 
  53.   cursorpointer
  54.   padding10px
  55. .win98 .menu .menu-content .item:hover { 
  56.   color#fff
  57.   background#000080
  58. .win98 .menu .menu-content .item.folder { 
  59.   positionrelative
  60. .win98 .menu .menu-content .item.folder:after { 
  61.   content'\25B6'
  62.   floatright
  63.   font-size10px
  64. .win98 .menu .menu-content .item .icon { 
  65.   floatleft
  66.   margin-right7px
  67.   margin-top-4px
  68. .win98 .menu .menu-content .item:hover .menu-content, 
  69. .win98 .menu .menu-content .item:focus .menu-content { 
  70.   displayblock
  71. .win98 .menu .menu-content .menu-content { 
  72.   background#bfbfbf
  73.   border1px solid
  74.   border-top-color#dfdfdf
  75.   border-left-color#dfdfdf
  76.   border-right-color#808080
  77.   border-bottom-color#808080
  78.   box-shadow: 1px 1px 0 0 #000
  79.   displaynone
  80.   positionabsolute
  81.   left: 165px
  82.   top: -4px
  83. .win98 .menu .menu-content .menu-content .item { 
  84.   padding3px 10px
  85. .win98 .menu .menu-content .menu-content .icon { 
  86.   width18px
  87.   height18px
  88.   margin-top-2px

本文链接:http://www.codeceo.com/article/windows-98-css.htm

责任编辑:王雪燕 来源: 码农网
相关推荐

2022-03-30 14:34:21

鸿蒙HarmonyOScss

2009-04-15 08:48:01

Windows 7微软操作系统

2010-09-13 13:44:35

CSS表格CSS表单

2010-08-31 12:42:22

CSS a标签

2017-07-20 11:11:39

前端CSS书写规范

2012-08-13 10:20:30

Windowslinux桌面

2010-08-13 08:57:20

Flex主题

2009-05-26 09:11:58

Windows 7微软操作系统

2010-06-12 13:59:42

Eclipse 4.0CSS主题功能切换

2009-03-24 09:15:42

Windows 7使用技巧微软

2022-12-06 23:32:47

CSS语言LCH

2022-12-28 08:16:30

CSS新规范样式

2015-10-28 13:40:28

高仿百度糯米源码

2015-01-14 15:27:20

Androidsplash

2009-07-01 16:36:40

CSS样式工具Visual Stud

2023-07-14 07:52:37

CSS优先级Design

2010-08-10 09:15:55

FlexSDK4

2010-08-26 15:18:27

CSS样式

2022-11-28 08:45:56

前端CSS

2010-08-23 10:30:05

CSS超链接
点赞
收藏

51CTO技术栈公众号