Result 以前書いたものとは別で、こちらは任意の場所で区切りたいケースの時に。 もっとシンプルな方法で非表示部分が要素に依存しています 多くの場合は動的なコンテンツに対応する必要があるので以前書いた方法で事足りそうです css.read-more-state { display: none; } .read-more-target { opacity: 0; max-height: 0; font-size: 0; transition: .15s ease; } .read-more-state:checked ~ .read-more-wrap .read-more-target { opacity: 1; font-size: inherit; max-height: 999em; } .read-more-state ~ .read-more-trigger:before {
![CSSで「続きを読む」を作る](https://cdn-ak-scissors.b.st-hatena.com/image/square/b6b1c87ada2ad66409793e3653c810e333009609/height=288;version=1;width=512/http%3A%2F%2Fkachibito.net%2Fwp-content%2Fuploads%2F2019%2F12%2Fsite-icon.png)