Content aware CSS - apply style only if content is available

后端 未结 3 1031
后悔当初
后悔当初 2020-12-13 17:48

Is it possible to have a css style be aware of whether the element it is being applied to has some sort of content or not? I am currently using tables (forced to since the e

3条回答
  •  孤城傲影
    2020-12-13 18:09

    No, with pure cross-browser css it is not. You will have to edit their cms or use javascript.

提交回复
热议问题