Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

<div class="news wow fadeInUp animated">
  <p style="margin: 0 25px 0 1px;padding: 0px;background-color: rgb(241, 240, 240);line-height: 21px">11111111111111</p>
  <p style="margin: 0 25px 0 1px;padding: 0px;background-color: rgb(241, 240, 240);line-height: 21px">22222222222222</p>
  <p style="margin: 0 25px 0 1px;padding: 0px;background-color: rgb(241, 240, 240);line-height: 21px">33333333333333</p>
</div>

就是P元素的背景颜色background-color: rgb(241, 240, 240),是这个颜色的时候就自动改成白色也就是rgb(255, 255, 255),如果是其他颜色就不变


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.5k views
Welcome To Ask or Share your Answers For Others

1 Answer

如果样式内联的话 偷个懒?

p[style*="background-color: rgb(241, 240, 240)"] {
  background-color: #fff !important;
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...