我的css:
.uploadify {
position: relative;
margin-bottom: 1em;
width:264px;
height:54px;
cursor:pointer;
}
这应该使附加的html文件(已经保存,因为它只能由我的网站的管理员访问)指定大小的div,但它不是出于某种原因。我怎么能覆盖这个呢?此外,我正在徘徊的其他div上的cursor:pointer
未注册
答案 0 :(得分:2)
使用width
属性直接样式覆盖height
和style
属性:
<div id="file_upload" class="uploadify" style="height: 30px; width: 120px;">
很容易发现这种错误。您只需打开开发者控制台/开发人员工具/检查器(至少在Firefox,IE和Chrome中可用)并选择相关元素。然后,您将看到元素及其源(即样式属性)的所有应用样式。