私は<h1>
次のようにスタイルを設定した を持っていますCSS
:
#col2 h1 {
text-align: left;
padding: 2.5%;
margin-top: 0;
margin-bottom: 0;
width: 95%;
background-color: #444;
border-bottom: solid 1px black;
cursor: pointer;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
何らかの理由で、テキストは次のように表示されます。
これは私が設定したことが原因である可能性があると最初に推測しましたmargin:0;
が、変更すると2.5%
、線間の距離は同じままで、暗い灰色の領域の上部にギャップが現れました.