Css游标:指针不会注册,宽度或高度也不会

时间:2013-08-08 15:47:48

标签: css

我的css:

.uploadify {
    position: relative;
    margin-bottom: 1em; 
    width:264px;
    height:54px;
    cursor:pointer;
}

这应该使附加的html文件(已经保存,因为它只能由我的网站的管理员访问)指定大小的div,但它不是出于某种原因。我怎么能覆盖这个呢?此外,我正在徘徊的其他div上的cursor:pointer未注册

http://client.henrybuilt.com/Upload%20Download%20Files.htm

1 个答案:

答案 0 :(得分:2)

使用width属性直接样式覆盖heightstyle属性:

<div id="file_upload" class="uploadify" style="height: 30px; width: 120px;">

很容易发现这种错误。您只需打开开发者控制台/开发人员工具/检查器(至少在Firefox,IE和Chrome中可用)并选择相关元素。然后,您将看到元素及其源(即样式属性)的所有应用样式。