the tailwind border classes only affect the thickness or style of the border.
The width is determined by the width of the container that the border is applied to.
You could do something like:
<h2 class="w-1/2 border-b-2"> My Skills </h2>
In this example the border will take on the width of the container, which is set to w-1/2
which is 50%
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…