---
title: "css常用技巧"
author: "zhyt710"
date: "2010-10-31T00:31:16Z"
tags: []
categories: ["Web前端"]
slug: "css"
draft: false
lastmod: "2010-10-31T00:31:16Z"
id: 798709
url: "https://zhyt710.iteye.com/blog/798709"
---

1.在firefox中span默认是不支持width属性的，有的ie版本也不支持。但不同的浏览器都有解决办法，如下

```
.tabs {
    display: -moz-inline-box; /* firefox支持 */
    display: inline-block; /* IE中 */
    width: 150px;
    text-align: right;
}
```

 

2\.