逼不得已,使用css方法如何解决,请教大家。
只能帮到这里了:
button:after {
content: "Hellow";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: white;
}
css不能改变里面的文字,你为什么不用js或者jquery来实现了?
不能,CSS能改变的的只有::before
和::after
伪元素中的内容。
你可以尝试用伪元素覆盖在原本的元素上。