随笔分类 -  解决兼容性问题

摘要:html判断IE版本 1. <!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]--> 2. <!--[if IE]> 所有的IE可识别 <![endif]--> 3. <!--[if IE 5.0]> 只有IE5.0可以识别 <![endif]--> 4. <!--[ 阅读全文
posted @ 2016-05-20 11:18 兌_onlyone 阅读(149) 评论(0) 推荐(0)
摘要:在网站开发中不免因为各种兼容问题苦恼,针对兼容问题,其实IE给出了解决方案Google也给出了解决方案百度也应用了这种方案去解决IE的兼容问题 百度源代码如下 <!Doctype html><html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http: 阅读全文
posted @ 2016-05-19 19:36 兌_onlyone 阅读(857) 评论(0) 推荐(0)
摘要:一. Webkit浏览器 (1) 第一种写法: background:-webkit-gradient(linear ,10% 10%,100% 100%, color-stop(0.14,rgb(255,0,0)), color-stop(0.5,rgb(255,255,0)), color-st 阅读全文
posted @ 2016-05-17 11:42 兌_onlyone 阅读(172) 评论(0) 推荐(0)