21个神奇的CSS技巧

所属分类: 网页制作 / CSS 阅读数: 1120
收藏 0 赞 0 分享
这里罗列的是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属性达到的效果。

更多精彩内容其他人还在看

CSS伪类对象before和after的用法实例详解

这两个伪类对象只有在清楚浮动clearfix的时候会用到哈,最近在研究css3的时候觉得它两个的搭配不仅能够减少代码量并且能整出很巴适的效果
收藏 0 赞 0 分享

CSS3 实用技巧:实现黑白图像效果示例代码

本文为大家详细介绍下CSS3实现黑白图像效果的具体思路及代码,感兴趣的朋友可以看下截图,希望对大家有所帮助
收藏 0 赞 0 分享

IE.JS解决IE兼容性问题方法汇总

正如标题所言它修复了许多的HTML和CSS问题,并使得透明PNG在IE5、IE6下正确显示,下面为大家介绍下具体针对不同浏览器的调用方法,感兴趣的朋友可以参考下哈
收藏 0 赞 0 分享

实现CSS3中的border-radius(边框圆角)示例代码

本文为大家详细介绍下如何实现CSS3中的border-radius(圆角),具体代码如下,感兴趣的朋友可以参考下哈,希望对大家有所帮助
收藏 0 赞 0 分享

CSS line-height行高上下居中垂直居中样式属性

我们在css编写中需要对大篇幅的内容显示的更好看,有些间隔,不要在挤在一起难看,就可以使用Line-Height属性进行控制
收藏 0 赞 0 分享

CSS Float布局过程与老生常谈的三栏布局

这篇文章就是总结一下怎样使用CSS中的float属性进行布局,其实网上有很多讨论这个话题的文章了,但我觉得都没说到点子上。那就来老生常谈一次吧,CSS之Float布局
收藏 0 赞 0 分享

邮箱css加载失败怎么办 网站css加载异常原因分析

造成css加载失败的原因有很多,脚本之家也遇到过,这可能跟你代码出错,浏览器、路径、编码等等都是有关联的。所以在具体情况具体分析。下面看看具体的方案
收藏 0 赞 0 分享

CSS控制样式的三种方式(优先级对比验证)

大家都知道,CSS的中文名叫做层叠样式表,而CSS在控制样式的时候,有三种引入方式,这里简单介绍下CSS控制样式的三种方式
收藏 0 赞 0 分享

meta http-equiv="X-UA-Compatible" content="IE=7" 意思是将IE8用IE7进行渲染

X-UA-Compatible是针对ie8新加的一个设置,对于ie8之外的浏览器是不识别的,这个区别与content=
收藏 0 赞 0 分享

Discuz7.2 IE9兼容性写法 杜工完全修补方案

因为Discuz7.2在IE9浏览器中有一系列的问题,所有要在以后的开发中考虑到ie9浏览器的一些问题了,这里简单介绍下,需要的朋友可以参考下
收藏 0 赞 0 分享
查看更多