thinking

          one platform thousands thinking

          hack css in safari and opera

          @media all and (min-width: 0px){ }opera和safari都支持
          @media screen and (-webkit-min-device-pixel-ratio:0){}
          這個只支持safari,以前做表單統一樣式的時候研究過。
          如果想區分opera和safari的話先寫
          @media all and (min-width: 0px){
          }
          然后寫
          @media screen and (-webkit-min-device-pixel-ratio:0){}
          就OK了

          div{ width:100px; height:200px;}
          @media all and (min-width: 0px){ div{ background:red} }
          @media screen and (-webkit-min-device-pixel-ratio:0){div{background:#000}}

          可以試下

          posted on 2011-08-11 16:16 lau 閱讀(328) 評論(0)  編輯  收藏 所屬分類: Web

          主站蜘蛛池模板: 唐河县| 新巴尔虎右旗| 禹州市| 城步| 海宁市| 台江县| 渭源县| 溧水县| 双牌县| 衡南县| 获嘉县| 亳州市| 云和县| 浦城县| 锡林浩特市| 金溪县| 延吉市| 阿克陶县| 武功县| 临沂市| 酉阳| 大冶市| 漠河县| 六枝特区| 怀集县| 手游| 呼伦贝尔市| 平谷区| 翼城县| 沂水县| 开封县| 商城县| 正阳县| 马鞍山市| 马山县| 镇雄县| 灵川县| 浦城县| 台安县| 什邡市| 莱西市|