Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css] 第350天 如何重写行内样式?方法有哪些(至少两种)? #2164

Open
haizhilin2013 opened this issue Mar 30, 2020 · 2 comments
Labels
css css

Comments

@haizhilin2013
Copy link
Collaborator

第350天 如何重写行内样式?方法有哪些(至少两种)?

我也要出题

@haizhilin2013 haizhilin2013 added the css css label Mar 30, 2020
@Ari-ZH
Copy link

Ari-ZH commented Mar 31, 2020

  1. !important
    2.js获取元素修改其样式属性值

@zwlhc
Copy link

zwlhc commented Apr 1, 2020

1, !important 最高级
2, var divStyle = document.querySelector('#div').style;  修改属性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css css
Projects
None yet
Development

No branches or pull requests

3 participants