当前位置: 首页 > 图文教程 > 网页制作 > CSS样式表 > 21个神奇的CSS技巧

CSS样式表
未知长宽元素在已知300px*300px的容器中垂直居中(IE6/7/8/FF)
CSS dashed和dotted的区别
css 超过宽度的文字显示点点
不同浏览器对CSS3和HTML5的支持状况
使用DIV+CSS布局网站的优点和缺陷分析
CSS样式表中的position属性详细说明
css 圆角边框
CSS 网页布局问题 li上多出的margin问题
为什么有些css样式不起作用
tab选项卡布局之利用a的一个选项形式
UL、LI 无序列表实现纯CSS网站导航菜单
在IE下,当margin:0 auto;无法使得块级元素水平居中时
IE bug input 外层浮动的边距问题
重置浏览器默认样式
两种跨浏览器的自适应高的css代码
纯CSS无hacks的跨游览器自适应高度多列布局 推荐
IE中伪类hover的使用及BUG
img与容器下边界的空隙(缝隙) 的解决方法
CSS入门篇之传智播客学习
CSS3 倾斜的网页图片库实例教程

CSS样式表 中的 21个神奇的CSS技巧


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-10   浏览: 62 ::
收藏到网摘: n/a

这里罗列的是21个神奇的CSS技巧,您也可能是从来没有想过居然还可以通过CSS这样子来处理问题的。
 

1. 跨浏览器的CSS幻灯片



Amazing demonstration of how to create a cross browser image gallery using just CSS.

2. 基于CSS的图像地图

This tutorial demonstrates a crazy way to create an image map using just CSS.

3. 纯CSS的LightBox灯箱效果

Create a lighbox using just CSS with no JavaScript required.

4. CSS图片替换技术制作的按钮

Replace the submit buttons with images using CSS, degrades back to submit button if CSS is disabled.

5. 使用CSS实现的动画导航菜单

Amazing tutorial on how to create an animated navigation menu using just CSS.

6. 纯CSS实现的树型导航菜单

Create a tree like navigation from nested lists of links. Very useful for creating sitemaps.

7. CSS渐变文字效果

Create eye-catching titles with nice gradient effect using just CSS.

8. CSS菜单列表设计

Very easy to understand tutorial on how to create a menu list using either CSS border-style or background-image property.

9. 使用CSS负边距创建自适应的布局

Amazing way to create a liquid layout using negative margins

10. CSS绝对底部教程

This might occur to you some time when a content page has not enough content to fill the page, so footer also moves up due to this. This tutorial shows you how to deal with this and make footer stay at bottom even when content is not enough.

11. 简单、灵活的CSS面包屑导航

Create a nice scalable breadcrumb navigation

12. 漂亮的引用设计

Make the blockquotes in your content or blog posts standout from rest of content. Very useful to highlight major points in long content pages.

13. CSS实现的柱状图表

CSS Stacked Bar Graph

Display graphs on your website using just CSS without any JavaScript or other heavy plugins.

14. 如何使用链接列表创建一个块状悬停效果

15. CSS多列列表

This article shows all possible ways you can use to stack up an unordered list into multiple columns.

16. 使用CSS图片合并技术制作的日期显示

If you have ever visited Learning jQuery then you might have noticed the awesome date display next to each blog post. This tutorial will show you how to achieve that using CSS Sprites.

17. 使用CSS美化你的日期和留言背景

Display date and comments on your blog posts in a nice way that takes less space.

18. 如果CSS实现的图片浏览器

Create a nice image viewer using CSS that will work even if user has disabled flash and JavaScript in the browser.

19. 创建一个CSS图像预加载

Use the CSS background-image property to preload images without any javascript required.

20. 渐变淡出的页面底部效果

This tutorial shows you how to make page content fade away into the bottom of the page just like the fortuito.us blog.

21. 很酷很创新的CSS边框使用技巧

这篇文章介绍的是如何使用CSS的border属性来实现某些很酷的效果。您会惊讶于CSS的border属性达到的效果。