{"id":27995592,"url":"https://github.com/chokcoco/csscontrol","last_synced_at":"2025-05-08T20:34:10.752Z","repository":{"id":95026295,"uuid":"52340538","full_name":"chokcoco/cssControl","owner":"chokcoco","description":"原生JS 实现CSS样式的get与set，兼容主流浏览器与 IE678","archived":false,"fork":false,"pushed_at":"2016-02-25T02:41:31.000Z","size":17,"stargazers_count":13,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-01T18:35:45.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chokcoco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-23T07:40:21.000Z","updated_at":"2023-05-09T14:25:55.856Z","dependencies_parsed_at":"2023-04-04T01:23:34.682Z","dependency_job_id":null,"html_url":"https://github.com/chokcoco/cssControl","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chokcoco%2FcssControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chokcoco%2FcssControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chokcoco%2FcssControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chokcoco%2FcssControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chokcoco","download_url":"https://codeload.github.com/chokcoco/cssControl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253145743,"owners_count":21861276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-08T20:34:10.059Z","updated_at":"2025-05-08T20:34:10.678Z","avatar_url":"https://github.com/chokcoco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 原生JS实现CSS样式的get与set，兼容主流浏览器与 IE678\n\n### 初始化方法\n###### 1) 提供 var cc = new CC() 构造函数，构建 cssControl 实例，然后 cc.getStyle(elem, style) 调用\n###### 2) 或者直接 CC().getStyle(elem, style) 进行调用\n\n### 核心方法\n###### 1) getStyle(elem, style) -- 用于获取结点为 elem 的 style 样式\n###### 2) setStyle(elem, style, value) -- 用于设置结点为 elem 的 style 样式为 value \n\n## 博客园相关blog \n[【CSS进阶】原生JS getComputedStyle等方法解析](http://www.cnblogs.com/coco1s/p/5210667.html)\n \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchokcoco%2Fcsscontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchokcoco%2Fcsscontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchokcoco%2Fcsscontrol/lists"}