标签: refactoring
我目前正在学习重构。我仍然在努力。
在下面的示例中,让我拥有更好的选择是
h2, h3 { font-weight: 700; } h2 { font-size: 3rem; } h3 { font-size: 1.5rem; }
OR
h2 { font-size: 3rem; font-weight: 700; } h3 { font-size: 1.5rem; font-weight: 700; }
感谢您的帮助!