标签:兼容 标识 break ref firefox 预订 gen border log
w获取浏览器标识
<style> .w > td { <?php $wua=$_SERVER[‘HTTP_USER_AGENT‘]; if(strpos($wua, ‘Chrome‘)){ echo ‘ width: 25px;‘; }elseif(strpos($wua, ‘Firefox‘)){ echo ‘ width: 24px;‘; }else{ echo ‘ width: 25px;‘; } ?> background-color: #fff; overflow: hidden; font-size: 80%; word-wrap: break-word; padding: 0; } #w, #w + tr, .w > td { border: 1px solid #000000; } </style>
标签:兼容 标识 break ref firefox 预订 gen border log
原文地址:http://www.cnblogs.com/yuanjiangw/p/6441237.html