【发布时间】:2026-02-10 12:55:01
【问题描述】:
我的html,
<div id="parent">
<div id="child">
</div>
</div>
css 的样子,
#parent{
height:100px;
width:200px;
any-aother-property1:something;
any-aother-property2:something;
any-aother-property3:something;
}
有没有办法一次性继承所有属性给子级,意思是我可以喜欢吗,
$('#child').properties= $('#parent').properties
【问题讨论】:
标签: javascript jquery html css