21个神奇的CSS技巧

所属分类: 网页制作 / CSS 阅读数: 1168
收藏 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属性达到的效果。

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

利用纯CSS3实现动态的自行车特效源码

这篇文章主要介绍了如何利用纯CSS3实现动态的自行车的方法,文中给出了完整的实例代码,实现后的效果非常不错,大家可以直接运行看看效果,需要的朋友下面来一起学习学习吧。
收藏 0 赞 0 分享

web前端开发规范文档(2014年版本)

这篇文章主要为大家介绍了前端开发团队遵循和约定的代码书写规范,意在提高代码的规范性和可维护性,需要的朋友可以参考下
收藏 0 赞 0 分享

前端编码规范(4)—— CSS 和 Sass (SCSS) 开发规范

这篇文章主要介绍了前端编码规范(4)—— CSS 和 Sass (SCSS) 开发规范,需要的朋友可以参考下
收藏 0 赞 0 分享

手把手教你用CSS实现带箭头的流程进度条

这篇文章主要给大家介绍了利用CSS实现带箭头的流程进度条大方法,文中给出了详细的示例代码,对大家具有一定的参考价值,有需要的朋友们一起来看看吧。
收藏 0 赞 0 分享

CSS实现三栏布局的四种方法示例

可能有人不理解三栏布局是什么,其实三栏布局页面分为左中右三部分,然后对中间一部分做自适应的一种布局方式,下面这篇文章就给大家详细介绍了CSS实现三栏布局的四种方法,需要的朋友可以参考借鉴,下面来一起看看吧。
收藏 0 赞 0 分享

利用css实现浮雕效果示例代码

这篇文章主要给大家介绍了利用css如何实现浮雕的效果,文中给出了详细的示例代码和解释,相信对大家有一定的参考价值,感兴趣的朋友们下面来一起看看吧。
收藏 0 赞 0 分享

浏览器默认样式(User Agent Stylesheet)的介绍与最佳处理方法

这篇文章主要给大家介绍了浏览器默认样式(User Agent Stylesheet)的相关资料,并给出了相对应的最佳解决方法。有需要的朋友可以参考借鉴,下面来一起看看吧。
收藏 0 赞 0 分享

css中px、em和rem的区别总结

相信每位前端工程师们都有这么一个体会,国内的设计师大都喜欢用px,而国外的网站大都喜欢用em和rem,那么三者有什么区别,又各自有什么优劣呢?下面这篇文章小编就来给大家详细介绍关于css中px、em和rem的区别,需要的朋友可以参考借鉴,下面来一起看看吧。
收藏 0 赞 0 分享

CSS3实现点击放大的动画实例代码

这篇文章主要给大家介绍了关于利用CSS3实现点击放大的动画效果,文中给出了完整的实例代码,相信对大家具有一定的参考价值,需要的朋友们可以一起来看看吧。
收藏 0 赞 0 分享

利用css代码实现纸飞机效果实例源码

这篇文章主要给大家介绍了如何利用css代码实现纸飞机的效果,实现后效果非常不错,文中给出了详细的实例代码,大家可以参考借鉴,下面来一起看看吧。
收藏 0 赞 0 分享
查看更多