如何覆盖特定div的max-width?

Cas*_*ert 12 css

我正在寻找以下解决方案.在我的CSS中,我有以下内容:

img, a img { 
    max-width: 100%;
    vertical-align: middle; 
}
Run Code Online (Sandbox Code Playgroud)

此代码对于我的WordPress主题和响应式网页设计是必需的.现在我想覆盖max-width属性auto.当我这样做时,它不会覆盖:

#pixel-perfect img {
    max-width: auto !important;
    position: absolute;
    margin: -200px 0 0 -140px;
    z-index: -9999;
}
Run Code Online (Sandbox Code Playgroud)

我做错了什么?

See*_*ode 23

你只是希望取消设置max-width属性?如果是这样,请尝试:

#pixel-perfect img {
    max-width: none;
}
Run Code Online (Sandbox Code Playgroud)