成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

CSS3制作Windows7開始菜單

開發(fā) 前端
如果我們分解這個Windows 7開始菜單,我們會得到1個div,2個ul列表,1組鏈接以及一些icon小圖標(biāo),我們可以一起來看看具體的效果。下面是簡單的制作過程及部分代碼

我對使用少量CSS3代碼來實(shí)現(xiàn)很多效果這一過程非常的著迷,很多UI元素都需要用圖片來展示其漂亮的外觀,但是你可能不知道,單純的CSS3代碼也是可以實(shí)現(xiàn)的。下面我就用純CSS3來制作Windows 7開始菜單(額外需要幾個小圖標(biāo)),從而來證明這個觀點(diǎn)。


純CSS3制作的Windows7開始菜單

如果我們分解這個Windows 7開始菜單,我們會得到1個div,2個ul列表,1組鏈接以及一些icon小圖標(biāo),我們可以一起來看看具體的效果。下面是簡單的制作過程及部分代碼

菜單容器(Container)

這個容器命名為startmenu ,里面包含了2個ul列表。同時用3種顏色實(shí)現(xiàn)線性漸變:頂部是淺藍(lán)色,中間是深藍(lán)色,底部是接近淺藍(lán)色的其他顏色。接著用rgba()實(shí)現(xiàn)透明度,rgba()有四個參數(shù),前3個表示紅、綠、藍(lán),第4個表示透明度,兩條邊線使用了box-shadow屬性。

  1. #startmenu { border:solid 1px #102a3e; overflow:visible; display:inline-block; margin:60px 0 0 20px;   
  2.              -moz-border-radius:5px;-webkit-border-radius:5px; position:relative;   
  3.              box-shadow: inset 0 0 1px #fff; -moz-box-shadow: inset 0 0 1px #fff; -webkit-box-shadow: inset 0 0 1px #fff;   
  4.              background-color:#619bb9;   
  5.              background: -moz-linear-gradient(top, rgba(50, 123, 165, 0.75), rgba(46, 75, 90, 0.75) 50%, rgba(92, 176, 220, 0.75));   
  6.              background: -webkit-gradient(linear, center top, center bottom, from(#327aa4),color-stop(45%, #2e4b5a), to(#5cb0dc)); } 

程序菜單(Programs Menu)

這是一個白色背景的ul列表,兩條邊線用了border和box-shadow屬性。程序鏈接包含了幾個小圖標(biāo)以及程序名稱,同時做了一個鼠標(biāo)滑過漸變投影的效果。

  1. #programs, #links {float:left; display:block; padding:0; list-style:none;}   
  2. #programs { background:#fff; border:solid 1px #365167; margin:7px 0 7px 7px;   
  3.             box-shadow: 0 0 1px #fff; -moz-box-shadow: 0 0 1px #fff; -webkit-box-shadow: 0 0 1px #fff;   
  4.             -moz-border-radius:3px;-webkit-border-radius:3px;}   
  5. #programs a { border:solid 1px transparent; display:block; padding:3px; margin:3px;   
  6.               color:#4b4b4b; text-decoration:none; min-width:220px;}   
  7. #programs a:hover {border:solid 1px #7da2ce;   
  8.              -moz-border-radius:3px; -webkit-border-radius:3px;   
  9.              box-shadow: inset 0 0 1px #fff; -moz-box-shadow: inset 0 0 1px #fff; -webkit-box-shadow: inset 0 0 1px #fff;   
  10.              background-color:#cfe3fd;   
  11.              background: -moz-linear-gradient(top, #dcebfd, #c2dcfd);   
  12.              background: -webkit-gradient(linear, center top, center bottom, from(#dcebfd), to(#c2dcfd));}   
  13. #programs a img {border:0; vertical-align:middle; margin:0 5px 0 0;}  

鏈接菜單(Link Menu)

上面提到的鏈接菜單非常簡單,但是這里我們可以做出更炫的鼠標(biāo)滑過效果。每一個鏈接菜單都有3種顏色的水平漸變:左邊和右邊是深藍(lán)色,中間用稍微淡一點(diǎn)的藍(lán)色。現(xiàn)在,不像程序菜單中的鏈接那樣,這個鏈接內(nèi)部用<span>來包含菜單的文字,同時span元素還擁有多種垂直線性漸變。

  1. #links {margin:7px; margin-top:-30px;}   
  2. #links li.icon {text-align:center;}   
  3. #links a {border:solid 1px transparent; display:block; margin:5px 0; position:relative;   
  4.               color:#fff; text-decoration:none; min-width:120px;}   
  5. #links a:hover {border:solid 1px #000;   
  6.              -moz-border-radius:3px; -webkit-border-radius:3px;   
  7.              box-shadow: 0 0 1px #fff; -moz-box-shadow: inset 0 0 1px #fff; -webkit-box-shadow: inset 0 0 1px #fff;   
  8.              background-color:#658da0;   
  9.              background: -moz-linear-gradient(center left, rgba(81,115,132,0.55), rgba(121,163,184,0.55) 50%, rgba(81,115,132,0.55));   
  10.              background: -webkit-gradient(linear, 0% 100%, 100% 100%, from(#517384), color-stop(50%, #79a3b8), to(#517384));   
  11.              }   
  12. #links a span { padding:5px; display:block; }   
  13. #links a:hover span  { background: -moz-linear-gradient(center top, transparent, transparent 49%, rgba(2,37,58,0.5) 50%, rgba(63,111,135,0.5));   
  14.             background: -webkit-gradient(linear, center top, center bottom, from(transparent), color-stop(49%, transparent),   
  15.             color-stop(50%, rgba(2,37,58,0.5)), to(rgba(63,111,135,0.5))); } 

下面是效果截圖,你也可以去看在線示例和下載源碼

這個CSS3制作的Windows 7開始菜單例子可以在Firefox 3.6+, Safari 和 Chrome瀏覽器中運(yùn)行,Opera和IE中的效果就不行了,也許我可以繼續(xù)優(yōu)化一下,歡迎大家提出建議和意見。

責(zé)任編輯:張偉 來源: 玄意html5
相關(guān)推薦

2011-08-18 18:20:35

windows7開始菜單

2009-09-09 08:43:36

Windows 7自定義開始菜單

2009-08-27 09:38:02

Windows 7開始菜單

2009-11-10 09:00:50

2009-09-24 08:28:21

Windows 7新功能任務(wù)欄

2021-04-22 21:53:15

Windows 10Windows微軟

2009-06-19 08:29:36

Windows 7微軟操作系統(tǒng)

2009-12-04 13:02:23

Windows 7開始

2021-08-30 05:37:33

Windows 11操作系統(tǒng)微軟

2011-08-09 15:51:52

Windows7開始菜單

2011-09-28 09:10:51

Windows開始

2014-04-22 09:13:58

開始菜單Windows

2014-04-29 10:39:27

CSS3JavaScript

2014-06-03 09:48:48

Windows 8.1開始菜單

2009-12-30 09:24:10

Windows 7系統(tǒng)菜單

2010-02-23 09:53:28

Windows 7開始菜單

2012-11-20 10:14:55

微軟Windows 8開始菜單

2014-01-09 11:28:21

Windows 9

2012-11-19 13:40:21

Windows 8

2013-07-23 09:37:24

Windows 8.1開始菜單
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號

主站蜘蛛池模板: 嫩草视频在线 | 另类二区| 九九亚洲| 亚洲国产精品成人无久久精品 | 在线一级片 | 国产一区二区免费 | 草久久| 天天操天天操 | 亚洲啊v在线 | 中文字字幕一区二区三区四区五区 | 国产乱码高清区二区三区在线 | 粉嫩av久久一区二区三区 | 国产亚洲欧美在线视频 | 96久久久久久 | 天天干精品 | 日韩精品一区二区三区中文在线 | 罗宾被扒开腿做同人网站 | 在线成人av| 日韩欧美国产精品一区二区三区 | 国产精品日韩一区二区 | 国产精品69毛片高清亚洲 | 色婷婷亚洲国产女人的天堂 | 一级黄色播放 | 久久久精品网站 | 午夜看片 | 国产成人一区在线 | 亚洲成人免费观看 | 综合久久综合久久 | 亚洲精品视频在线观看视频 | 亚洲精品视频在线 | 99精品一区二区三区 | 激情六月丁香 | 91伦理片| www.中文字幕| 成人性视频免费网站 | 日韩av免费看 | 日韩高清国产一区在线 | 亚洲日本一区二区 | 99亚洲 | 国产日韩视频在线 | 黄色片网站在线观看 |