css - 样式化子组件以显示在父组件的左侧
问题描述
我需要创建 CSS 样式来启动父组件左侧的组件。
我有以下结构:
----panelComponent(parent)
-------inputComponent(parent)
----------otherComponent(child)
我试图触发当用户触发otherComponent
which is child of 时inputComponent
,它出现在左侧,inputComponent
因为组件位于屏幕左侧,而另一个组件没有以正确的方式显示。这就是问题:
inputComponent
我想在(父级)
左侧显示带有网格的面板,如下图所示:
我用来在 inputComponent 中调用 otherComponent 的代码与此类似:
<div #parentReference></div>
<input>
<span class="ra-ui-input-suffix">
<ra-ui-icon-button
(click)="openOtherComponent()"
>
</ra-ui-icon-button>
</span>
</input>
<ng-template #otherComponent>
<other-component></other-component>
</ng-template>
otherComponent
旨在在调用它的组件下启动。我需要创建一个样式以otherComponent
在父级的左侧启动。
解决方案
推荐阅读
- javascript - jQuery: ":checked" 总是返回 true
- php - pdf 文件在谷歌搜索结果中的页面标题
- image-processing - 什么是图像处理中的自相似测试?
- javascript - 为特定的 JS 文件挂钩 Javascript Onload
- python - 自定义张量流模型的 OOP 版本如何工作
- couchbase - N1QL 中的 REGEXP_CONTAINS 和 REGEXP_LIKE 有什么区别?
- python - Python - 计算所需的自然数个数
- tensorflow - 可视化增强的火车图像 [tensorflow object detection api]
- python - Python:为什么即使没有指示,列表值也会改变?
- python-3.x - 在列表理解中引发异常:语法无效