我想问一些关于使用顺风的伪元素的问题,所以在讨论我的主要问题之前我想使用CSS
.text-location {
display: flex;
gap: 1.625rem;
}
.text-location::after {
content: url('image/arrow-down-icon.svg'); <= example image
display: inline-block;
width: 100%;
height: 100%;
}
Run Code Online (Sandbox Code Playgroud)
结果是这样的:
it's working and nothing something wrong when I used in CSS, but when I'm going through using tailwind the content is not showing anything, any wrong with my code? Or I must do something different what I have been made? I hope anyone can help and tell me where I made the mistake...Thank you before …
当我想key在 javascript 中对对象值数据进行分组时遇到问题。我有这样的数据对象。
我的数据:
const obj = [
{total_present: "35", total_overtime: "12"},
{total_present: "25", total_overtime: "5"},
{total_present: "15", total_overtime: "15"},
{total_present: "23", total_overtime: "13"},
{total_present: "31", total_overtime: "22"},
{total_present: "17", total_overtime: "15"},
{total_present: "19", total_overtime: "19"},
{total_present: "23", total_overtime: "14"},
{total_present: "24", total_overtime: "11"},
{total_present: "21", total_overtime: "10"}
];
Run Code Online (Sandbox Code Playgroud)
我想把它操纵成这样:
{
total_overtime: ["12", "5", "15", "13", "22", "15", "19", "14", "11", "10"]
total_present: ["35", "25", "15", "23", "31", "17", "19", "23", "24", "21"]
}
Run Code Online (Sandbox Code Playgroud)
我怎么可能让我的数据喜欢那个?
如果我的解释不能理解,我深表歉意,你可以再问我,谢谢