删除google-code-prettify border

sor*_*u26 4 pre google-code-prettify

我想在使用时删除代码边框google-code-prettify.我尝试了以下但没有结果.

pre.prettyprint {
    border: none;
}
Run Code Online (Sandbox Code Playgroud)

我还尝试删除所有pre标签上的边框,同样没有结果.

pre {
    border: none;
}
Run Code Online (Sandbox Code Playgroud)

谢谢!

小智 6

我想你需要告诉浏览器它应该听哪些样式指令.该!important属性应该告诉te浏览器你希望你的css先行.

pre.prettyprint {
    border: none !important;
}
Run Code Online (Sandbox Code Playgroud)

}