如何在不刷新页面的情况下刷新css?

2024-01-05 16:37 小编

<style> 

button{color:#000000;} 

</style> 

<button onclick=document.styleSheets[0].rules[0].style.color='red'>点击按钮直接修改style标签里button选择符使按钮改为  红色</button> 


在线咨询 拨打电话

电话

13363039260

微信二维码

微信二维码