ul {
list-style: none;
margin-right: 0;
padding-left: 0;
list-style-position: inside;
}
ul > li {
align-content: center;
display: flex;
margin: 5px 0;
padding-left: 1em;
text-indent: -1em;
}
ul li:before {
/* I'm a different image but found a similar
sized one online for demonstration
purposes seen below */
content: url("https://www.dicentral.com/css/assets/imgs/Flag_Nation_france.png");
border: 1px solid grey;
}
<ul>
<li>Get to know the business</li>
<li>Get to know people (stakeholders, key players, cross-functional partners, etc.)</li>
<li>Learn how the team's priorities impact our mission</li>
<li>Get to know your projects, the team's projects, who's involved, and your onboarding goals</li>
</ul>
임베디드 코드 편집기의 결과는 내가 사용하고있는 이미지의 결과와 동일합니다.
이것은 원하는 출력 :
어떤 아이디어? 안타깝게도 테두리가있는 아이콘을 가져와야 할 수도 있지만, 관리하지 않으면 볼 수 있습니다.
감사합니다. 당신은 "디스플레이 : 플렉스"를 제거해야합니다
그냥 코드를 게시하는 대신 자세한 설명을 추가하십시오. – Aaqib
안녕하세요 오스카,이 기능은 실제로 이모티콘에서는 작동하지만 실제 이미지에서는 작동하지 않습니다. 데모 스트레이트를 위해 이미지를 얻을 수 있는지 봅시다. –