Giter VIP home page Giter VIP logo

selectivizr's Introduction

Selectivizr

CSS3 for IE 6-9

Fork

这个fork整合了修改版的PIE,从而让IE6-9获得css3的选择器之外,或获得了圆角、阴影、渐变色资源等css3属性的支持

再也不用为迁就低版本IE而额外写代码了,直接按照现代浏览器标准写,最后加入selectivizr即可。一个字,爽!

大神们常说:PC端写css3,优雅降级才是王道。但是鉴于草根前端er们在项目组中的地位,往往无法说服领导。今天,你不用再取舍,使用本项目尽情使用css3吧

使用方式:

PIE.htcPIE_IE9.jsPIE_IE678.jsselectivizr.jsprefixfree.min.js 将这5个文件,放在js目录下,然后在html中,引入所有css文件之后加入:

<script src="js/selectivizr.js"></script>

功能列表

注意事项

  • 不支持style属性中的行内样式。
  • 应该尽量避免使用<style>标签。
  • 如果需要本地双击html文件方式使用,请在Selectivizr前加载jQuery。
  • 出现元素抖动或者背景及边框消失的情况,请用 position: relative; zoom: 1; 方式修正,加给元素本身或其父元素。
  • 如果服务器环境的content-type配置不正确,可能造成css3属性不生效。如Apache,可在.htaccess文件中添加一行AddType text/x-component .htc即可解决此问题。

selectivizr's People

Contributors

keithclark avatar krofdrakula avatar msheakoski avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.