【发布时间】:2015-09-19 11:50:26
【问题描述】:
是否可以让一个类从另一个类(从不同的 CSS 文件)继承?
/* Make this class have all .form.control's styling.
form.control is located in a separate standard .css file*/
.token-input-list-facebook {
.form-control;
}
编辑 更多信息:具有“token-input-list-facebook form-control”类的 HTML 元素由第三方库动态生成。一个输入变成了一个带有隐藏ul 的输入,它会自动建议一些事情。所以我可以去编辑第 3 方 javascript。但是通过样式表(CSS 或 LESS)进行样式设置是一种更优雅的方法
【问题讨论】:
-
是的,你可以import the standard.css file as reference然后调用它。
-
你想在LESS中实现这个?