.ellipsis {
overflow
:
hidden
;
white-space
nowrap
text-
:ellipsis;
}
아래 코드를 ellipsis.xml 파일로 저장합니다.
<?
xml
version
=
"1.0"
?>
<
bindings
xmlns
"http://www.mozilla.org/xbl"
xmlns:xbl
xmlns:xul
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
binding
id
"ellipsis"
content
xul:description
crop
"end"
xbl:inherits
"value=xbl:text"
children
/>
</
: ellipsis;
-moz-binding:
url
(
'ellipsis.xml#ellipsis'
);
XUL:description 을 간단히 설명하면, crop 속성을 통해 잘라낼 문자열의 위치를 지정하고, inherits 속성으로 value 값에 문자열을 지정합니다. crop 값을 만약 start 나 left 로 지정하게되면 첫부분이 잘라져서 나오겠죠.