【发布时间】:2021-07-26 15:30:29
【问题描述】:
我是块新手并学习 React - 我在下面有这部分功能:
AlertNotifications.prototype.render = function () {
return (React.createElement("div", null, this.props.alerts.map(function (alert) { return React.createElement(MessageBar, { messageBarType: alert.type === AlertType.Urgent ? MessageBarType.severeWarning : MessageBarType.warning, isMultiline: false },
alert.message,
alert.moreInformationUrl ? React.createElement("a", { href: alert.moreInformationUrl }, strings.MoreInformation) : ''); })));
};
return AlertNotifications;
我需要更改返回的 DIV 的字体大小 - 请告诉我我需要更改什么 - 或添加到上面以将字体大小更改为 Arial 16px?
在此先感谢
G
【问题讨论】:
标签: reactjs fonts createelement