DIV CSS 佈局教程網

您现在的位置: DIV+CSS佈局教程網 >> 網頁腳本 >  >> CSS入門知識 >> CSS進階教程
國外精選 25 個 CSS 進階技巧教學,讓樣式表做更多事
編輯:CSS進階教程     

當你對 CSS 的掌握達到一定程度,它就能替你做很多進階的事,有些原本得靠 JavaScript 才能解決的問題,如今純 CSS 也能勝任。要知道,在 Web 開發中每少一段 JS,對執行效能都是實實在在的減壓。以下 25 個進階教學,能幫你把 CSS 的能力再往前推一層。

1. 純 CSS 文字漸層與背景漸層

CSS Gradients using pure CSS/Background gradients and CSS

CSS Gradient Text Effect/Pure CSS Text Gradient

2. 用 z-index 處理圖像重疊

Understanding Z-Index/CSS Z-index

3. 用 border 玩出創意圖形

Create a Scalable Star using CSS border/Border Slants

4. 純 CSS 打造控制面板介面

Dashboard

5. 純 CSS 做出 2D/3D 立體按鈕

3D Rollover Button using CSS/How to make sexy buttons with CSS/CSS rollover buttons

6. 文字浮雕與陰影技法

Text Embossing/CSS Text Drop Shadows

text-shadow: 0px 1px 0px #e5e5ee;

7. 用 CSS 為超連結加上小圖示

Add icon to the hyperlink/Iconize Textlinks with CSS

8. 純 CSS 彎曲引號

Curly Quotes with Pure CSS/Swooshy Curly Quotes Without Images

9. 用 opacity 創造多種視覺效果

A CSS only fly-out menu with transparency/CSS Menu using opacity/Opacity Background Blending Effects/Transparency Menu Watermark on an image

10. 背景模糊效果

How to create a blurry background using CSS

11. CSS 視差滾動

Examples of and How to Create the CSS Parallax Effect/A parallax illusion with CSS: The Horse in Motion

12. 只用 CSS 實作 Lightbox

Lightbox technique

13. 純 CSS 手風琴展開效果

Create Accordion using CSS

14. 用簡單 CSS 替文字加上粗獷質感

Grunge effect tutorial

15. 區塊/元素 hover 效果

Learn how to create a block hover effect for a list of links/CSS element hover effect

16. 簡易的網點(dither)效果

Dither effect using CSS

17. 打造 Dock 風格選單

Horizontal Menus That Grow on You

18. CSS 圖片 hover 替換

CSS swap hover effect

19. 拍立得相片風格

Polaroid-izing photos with CSS and one Image

20. 雜誌風排版

Create a Magazine Type layout Using CSS

21. Hoverbox 選單

Cool CSS Menu

22. 標籤頁切換

Create a Tabbed content

23. 固定背景 attachment 的魔法

A trick that reveals a magic

24. CSS 資訊提示框

Show a message when hovering over the links

25. 純 CSS 圖片預載提示

Add a "loading" icon to your larger images

這 25 個案例涵蓋漸層、陰影、選單、排版與互動效果,幾乎每一項都能直接搬進專案。建議挑幾個動手實作,比單純閱讀有效得多。

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved