【发布时间】:2021-02-12 00:08:19
【问题描述】:
根据上述编辑器的输出,有什么办法可以避免文本重叠在关闭图标上?我不想将文本移到下一行。从开发者工具得知,关闭按钮的样式为{position: absolute; top:0; right:0;}
我尝试使用word-wrap: break-word,但没有成功。
【问题讨论】:
根据上述编辑器的输出,有什么办法可以避免文本重叠在关闭图标上?我不想将文本移到下一行。从开发者工具得知,关闭按钮的样式为{position: absolute; top:0; right:0;}
我尝试使用word-wrap: break-word,但没有成功。
【问题讨论】:
.p-sidebar-close {
position: relative;
float: right;
}
覆盖或更改 .p-sidebar-close position: relative; 和 float: right; 的 CSS 属性
【讨论】:
width 或margin 的div 将修改其他行,我希望将下面的行定位到侧边栏的末尾。
app.component.ts 中将styles 替换为styleUrls: ["./app.component.css"]