2016-03-04から1日間の記事一覧
横幅を固定し、高さは自動で広がるPREタグを書きたいとき。 pre.yoko { width: 300px; overflow: auto; /* 重要 */ word-wrap: break-word; /* 念の為 */ word-break: break-all; /* 念の為 */ } overflow-CSSリファレンス http://scene-live.com/page.php?…
横幅を固定し、高さは自動で広がるPREタグを書きたいとき。 pre.yoko { width: 300px; overflow: auto; /* 重要 */ word-wrap: break-word; /* 念の為 */ word-break: break-all; /* 念の為 */ } overflow-CSSリファレンス http://scene-live.com/page.php?…