Browsing all articles from 六月, 2010
浏览器兼容——CSS Hack
通过CSS Hack解决各浏览器的兼容问题,是现在普遍采用的方法。我分享一些常用的CSS Hack写法。
1 2 3 4 | <!--[if IE6]-->……<![endif]--> <!--[if IE7]-->……<![endif]--> <!--[if IE8]-->……<![endif]--> <!--[if !IE]-->……<![endif]--> |
1 2 3 4 5 6 7 | .csshack{
padding:10px;
padding:9px\9; /* 所有 ie */
*padding:5px; /* ie6和ie7 */
+padding:7px; /* ie7 */
_padding:6px; /* ie6 */
} |
这些是比较常用的CSS Hack写法,可以解决大部分兼容问题。但我个人认为,应该从根本入手,而不是单单依靠CSS Hack。
Magento Google Sitemap 的配置
Magento 自带googl sitemap,进入后台 System—>Configuration—>Google Sitemap

其他的就不多说了,应该都知道怎么做了。
紫月蓝骋