Latest web development tutorials
×

JavaScript & HTML DOM リファレンスマニュアル

概要

JavaScript オブジェクト

JavaScript Array オブジェクト JavaScript Boolean オブジェクト JavaScript Date オブジェクト JavaScript Math オブジェクト JavaScript Number オブジェクト JavaScript String オブジェクト JavaScript RegExp オブジェクト JavaScript グローバルプロパティ/関数 JavaScript 演算子

Browser オブジェクト

Window オブジェクト Navigator オブジェクト Screen オブジェクト History オブジェクト Location オブジェクト

DOM オブジェクト

HTML DOM Document オブジェクト HTML DOM Elementオブジェクト HTML DOM 属性オブジェクト HTML DOM イベントオブジェクト

HTML オブジェクト

<a> <area> <audio> <base> <blockquote> <body> <button> <canvas> <col> <colgroup> <datalist> <del> <details> <dialog> <embed> <fieldset> <form> <iframe> <frameset > <img> <ins> <input> - button <input> - checkbox <input> - color <input> - date <input> - datetime <input> - datetime-local <input> - email <input> - file <input> - hidden <input> - image <input> - month <input> - number <input> - range <input> - password <input> - radio <input> - reset <input> - search <input> - submit <input> - text <input> - time <input> - url <input> - week <keygen> <link> <label> <legend> <li> <map> <menu> <menuItem> <meta> <meter> <object> <ol> <optgroup> <option> <param> <progress> <q> <script> <select> <source> <style> <table> <td> <th> <tr> <textarea> <title> <time> <track> <video>

HTML DOMスタイルtextAlignLastプロパティ

スタイルオブジェクトリファレンス スタイルオブジェクト

段落の最後の行を右揃えにします:

document.getElementById("myDIV").style.textAlignLast="right";

»をお試しください

定義と使用法

textAlignLast属性は、最後の行のテキストを整列する方法を指定します。

注:textAlignLastプロパティを作業は、テキスト-alignプロパティが設定されている「正当化」である場合にのみ。


ブラウザのサポート

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet ExplorerだけはtextAlignLastプロパティをサポートしています。

Firefoxは、プロパティをMozTextAlignLast property属性の別の代替をサポートしています。

Internet Explorerは、「開始」と「終了」の値をサポートしていません。


文法

戻るtextAlignLastプロパティ:

object .style.textAlignLast

textAlignLastプロパティを設定します:

object .style.textAlignLast="auto|left|right|center|justify|start|end|initial|inherit"

プロパティ値

描述
auto 默认值。最后一行被调整,并向左对齐。
left 最后一行向左对齐。
right 最后一行向右对齐。
center 最后一行居中对齐。
justify 最后一行被调整为两端对齐。
start 最后一行在行开头对齐(如果 text-direction 是从左到右,则向左对齐;如果 text-direction 是从右到左,则向右对齐)。
end 最后一行在行末尾对齐(如果 text-direction 是从左到右,则向右对齐;如果 text-direction 是从右到左,则向左对齐)。
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit

技術的詳細

デフォルト: オート
戻り値: 要素のテキストアライン-最後の属性を表す文字列。
CSSのバージョン CSS3


関連記事

CSSリファレンス: =左属性最終テキストアライン


スタイルオブジェクトリファレンス スタイルオブジェクト