Upgrade to Pro — share decks privately, control downloads, hide ads and more …

2011淘宝首页改版实践

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.
Avatar for wagjie wagjie
August 02, 2012

 2011淘宝首页改版实践

test

Avatar for wagjie

wagjie

August 02, 2012
Tweet

Other Decks in Design

Transcript

  1. 让ie6/7/8 支持 HTML5 标签 <html> <head> <style> figure { color:orange;

    } </style> <script>document.createElement("figure");</script> </head> <body> <figure> 淘宝网! </figure> </body> </html>
  2. <!--[if lte IE 8]> <noscript> <style> .html5-wrappers {display:none !important;} </style>

    <div class="ie-noscript-warning"> 您的浏览器禁用了脚本,请<a href="">查看这里</a>来启用脚本! 或者<a href="/?noscript=1">继续访问</a>. </div> </noscript> <![endif]-->
  3. /* except for ie 6/7/8 */ .J_slide li { -moz-border-radius:20px;

    -webkit-border-radius:20px; border-radius:20px; height:20px; } 圆角的实现
  4. /* 圆角 for ie6,7,8 use vml */ var css =

    document.createStyleSheet(); css.addRule("v\\:roundrect", "behavior: url(#default#VML);display:inline-block;"); var rect = document.createElement('v:roundrect'); setAttribute(rect, { arcsize:"20px", stroked:false }); rect.css({ width:"20px",height:"20px", antialias:true }); IE 6/7/8使用js实现圆角