我有一个弹出窗口,它在右边显示图标,在左边显示文本。
Click here to see demo
应用程序模块.ts
SimpleNotificationsModule.forRoot( {
icons: {
success: '<i class="icon-check-sign icon-3x"></i>',
alert: '<i class="icon-exclamation icon-3x"></i>',
error: '<i class="icon-bug icon-3x"></i>',
info: '<i class="icon-info icon-3x"></i>',
warn: '<i class="icon-warning-sign icon-3x"></i>'
}
})
CSS
[class^="icon-"], [class*=" icon-"] {
display: inline-block;
width: 100%;
}
td i {
text-align:left;
}
现在我想翻转它,就像左边的图标和右边的文本。
这是源代码:
https://github.com/flauc/angular2-notifications
但是我不想改变源代码,只改变CSS类
我在堆栈溢出中找到了这个问题
How to center Font Awesome icons horizontally?
以及解决方案,并实现了在接受的解决方案中显示的额外类。但没有区别。
如何翻转图标和文本?