最初の行のテキストを2行目(50px)のように字下げしたいと思います。それを行う方法は?どうもありがとう!自動番号付け前のCSS擬似 - 字下げ
body \t {
\t counter-reset: h2counter;
}
h1 \t {
\t counter-reset: h2counter;
}
h2 \t {
\t padding-left: 50px;
\t text-indent: -50px;
}
h2:before {
\t content: counter(h2counter) ".";
\t counter-increment: h2counter;
\t left: 0;
\t width: 50px;
\t text-align: left; \t
}
<h2>Take bus 1627 running from Taiwan Taoyuan International Airport to Zhongli Service Area. Get off at Zhongli Service Area for the transfer to the next bus. More bus details: <a href="http://www.ubus.com.tw/html/line/show.php?num=37" target="_blank">Ubus</a>; <a href="http://www.taiwanbus.tw/information.aspx?Lang=En&Line=2986" target="_blank">Taiwan Bus</a>; <a href="http://www.taoyuan-airport.com/english/Buses/#e0871f13-0119-445f-8a41-f9a6913cc00e" target="_blank">Airport transportation guide</a></h2>
<h2>Take bus 1618 running from Taipei Bus Station to Chiayi Bus Station. Some buses do not stop at Linkou and Zhonggang Bus Station, but this does not matter to passengers going to Chiayi. More bus details: <a href="http://www.ubus.com.tw/html/line/show.php?num=23" target="_blank">Ubus</a>; <a href="http://www.taiwanbus.tw/information.aspx?Lang=En&Line=4321" target="_blank">Taiwan Bus 1</a>; <a href="http://www.taiwanbus.tw/information.aspx?Lang=En&Line=9237" target="_blank">Taiwan Bus 2</a></h2>
ああ、これは完璧です。どうもありがとう!! – Sen
上向き矢印も押しました。 – Sen
@Sen:ここで役立つすべての回答に投票することができます。お力になれて、嬉しいです :-) – Pugazh