标签:str document 用法 code query wal rem bsp uil
1.改变样式
let dom = document.querySelectorAll(‘.waListHeight .ant-table-body‘);
dom[0].style.height =‘100px‘;
let dom = document.querySelectorAll(‘.waListHeight‘);
dom[0].style.height =‘100px‘;
2.给元素添加类名
document.querySelector("html").classList.add("noscroll");
3.给元素删除类
document.querySelector("html").classList.remove("noscroll");
标签:str document 用法 code query wal rem bsp uil
原文地址:https://www.cnblogs.com/zxm1993/p/11104017.html