*<p>のalign=...は非推奨属性 [#v9e387d4]

-ページ: BugTrack
-投稿者: [[ぱんだ]]
-優先順位: 普通
-状態: 完了
-カテゴリー: 本体バグ
-投稿日: 2002-12-03 (火) 16:54:57
-バージョン: 

**メッセージ [#n1365fe5]
[[BugTrack/80]]の改善として投入したコード内で、<p align="...">を使用していますが、pのalign属性は非推奨だとの指摘を頂きましたので、修正しようと思います。

…が、やり方がいくつかあって悩んでいます。コメントお願いします。

***その1 [#a23aa0b9]
 -<p align="left">
 -<p align="center">
 -<p align="right">
 +<div class="p_align" style="text_align:left">
 +<div class="p_align" style="text_align:center">
 +<div class="p_align" style="text_align:right">

***その2 [#q6dea763]
 -<p align="left">
 -<p align="center">
 -<p align="right">
 +<div class="p_left">
 +<div class="p_center">
 +<div class="p_right">
スタイルシートに追加
 div.p_left {
  text-align:left;
 }
 div.p_center {
  text-align:center;
 }
 div.p_right {
  text-align:right;
 }
----

-「その2」の方がシンプルでいいんじゃないかと思います。 -- [[龍司]] SIZE(10){2002-12-03 (火) 18:34:02}
-とくに重要じゃないですけど、外部スタイルシート内で「_」(アンダー)は使えなかったはずです。CSSのチェッカーがエラーを吐くだけですけど……一応将来のために段々減らした方がいいかと。 -- [[未亜]] SIZE(10){2002-12-04 (水) 02:29:21}
-現状の[[CSS Validator:http://jigsaw.w3.org/css-validator/]]だと怒られますね。ただ、Errataに「アンダースコアも使えるようにするよ」と書かれていますから… -- [[ぱんだ]] SIZE(10){2002-12-04 (水) 10:07:25}
--[[REC-CSS2-19980512:http://www.w3.org/TR/REC-CSS2/]]
>In CSS2, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [A-Za-z0-9] and ISO 10646 characters 161 and higher, plus the hyphen (-); 
<
--[[Errata in REC-CSS2-19980512:http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html]]
>[2001-07-30] The underscore should be allowed in identifiers. Change "In CSS2, identifiers [...] can contain only the characters [A-Za-z0-9] and ISO 10646 characters 161 and higher, plus the hyphen (-)" to: 
>>In CSS2, identifiers [...] contain only the characters [A-Za-z0-9] and ISO 10646 characters 161 and higher, plus the hyphen (-) and the underscore (_)
<
-そのうちValidatorでもアンダースコアを通すようになるのではないかなと。 -- [[ぱんだ]] SIZE(10){2002-12-04 (水) 10:07:25}
-その2をcvsに投入しました。 -- [[ぱんだ]] SIZE(10){2002-12-05 (木) 10:14:02}
#comment

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Site admin: PukiWiki Development Team

PukiWiki 1.5.4+ © 2001-2022 PukiWiki Development Team. Powered by PHP 5.6.40-0+deb8u12. HTML convert time: 0.074 sec.

OSDN