这就像在标题出现在左边,并且下拉设置菜单的右侧箭头.. 后这是我到现在为止在'div'元素中,如何将文本对齐到左侧,而将所有其他项目对齐到右侧?
<style>
.thread {
background-color: skyblue;
height: 50px;
width: 90%;
align-self: center;
text-align: end;
display: inline-block;
border-radius: 6px;
position: relative;
}
.header {
width: fit-content;
display: inline-block;
align-self: right;
}
.arrow {
display: inline-block;
vertical-align: bottom;
height: 50%;
}
.titletext {
display: inline-block;
text-align: left;
}
</style>
<div class="thread">
<p class="titletext">Title</p>
<div class="header"><img class="arrow" onclick="showPopover(this)" src="https://image.flaticon.com/icons/png/512/7/7584.png" /></div>
</div>
And I'm trying to achieve this
对不起如果代码过于随机或者某些行不需要,但我一直在搜索并尝试很多东西,所以这就是我现在所拥有的东西。