pre要素
Posted by @Style :
00:45
|
コメント (0)
|
トラックバック (0)
無料テンプレート配布ページでコードの表示をtextarea要素のreadonly属性を利用してマークアップしていた。コピーする際に簡単なのでtextarea要素を使用していたのだが、最近になって気なり始めた。やはりpre・codeでマークアップしなければ構造上間違いである。
ところが、私はCSSを書く際に水平タブ文字を空白文字としている部分がかなりあり、このままではpre要素に変更が出来ない。
9.3.4 Preformatted text: The PRE element![]()
The horizontal tab character
The horizontal tab character (decimal 9 in [ISO10646] and [ISO88591] ) is usually interpreted by visual user agents as the smallest non-zero number of spaces necessary to line characters up along tab stops that are every 8 characters. We strongly discourage using horizontal tabs in preformatted text since it is common practice, when editing, to set the tab-spacing to other values, leading to misaligned documents.
400個程ある全ての水平タブ文字をスペースに書き換えた。
前のエントリー:TinyMCE Plugin for Movable Type Ja
次のエントリー:HTML validator
関連記事
- HTML5のMovable Type 5テーマ完成しました
- HTML5のMovable Type 5テーマ作成中(その3)
- HTML5のMovable Type 5テーマ作成中(その2)
- MT5テーマを5,000円オフのキャンペーン
- HTML5のMovable Type 5テーマ作成中
- zenback ベータテスト開始!
- MovableType 4.2 2Column HTML5の解説(サイドバー)
- MovableType 4.2 2Column HTML5の解説(コメントフォーム)
- MovableType 4.2 2Column HTML5の解説(ブログ記事)
- MovableType 4.2 2Column HTML5の解説(幅の調整)
トラックバック
このエントリーのトラックバックURL:
http://atstyle.biz/blog/mt-tb.cgi/376
![Web標準 Webサイト制作 [アットスタイル] アットスタイル](http://atstyle.biz/webimg/atstylelogo.png)




