보시다시피, 테두리는 페이지 끝으로 확장됩니다. 텍스트가 끝난 후 바로 끝나고 싶을 때 .. (거의). 이를 수행하는 특정 방법이 있습니까? 추신 나는 그것이이 ONE 제목에 대해서만이 방법이되기를 원합니다.
내 코드는 다음과 같습니다.
<h1 style="border-style:dashed;border-left-width:2px;border-right-width:2px;border-width:2px;border-color:black;"><b><u>Current Projects (in order of importance):</b></u></h1>
<p><ol>
<li>Apartment Life Redux</li>
<li>Sharpshooter Infinite</li>
</ol></p>
추가하기 만하면 display:inline;
나머지는 괜찮습니다.
<h1 style="border-style:dashed;border-left-width:2px;border-right-width:2px;border-width:2px;border-color:black; display:inline;"><b><u>Current Projects (in order of importance):</b></u></h1>
<p><ol>
<li>Apartment Life Redux</li>
<li>Sharpshooter Infinite</li>
</ol></p>
특정 요소에 대해서만 속성을 설정하고자하는 경우에는 요소 ID와 같이 사용할 수 있습니다.
<div id="foo"><div> //this is in your html
#foo{display:inline;//other styles} //this is part of your css file
도움이 되었기를 바랍니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다