Re: [css3-text-overflow] Question regarding float and text-overflow: ellipsis(float 和 text-overflow: ellipsis 的问题)

鍒氬垰璺熶竴涓濇椇鏃轰笂璁ㄨ杩囷紝绗﹀悎鏍囧噯鐨勮偗瀹氭槸鏂囧瓧閬洊 input锛屾爣鍑嗕笂璇达細

This property specifies rendering when inline content overflows its block
container element.

鍥犱负float鍏冪礌鍙奖鍝峫ine box锛屾墍浠ext-overflow杩欏睘鎬ц窡float灏卞畬鍏ㄦ棤鍏充簡銆

鐒惰屾垜鏄涓鸿繖涓瀹氱浉褰撴湁闂锛屼粠绗﹀悎鐩磋鐨勮搴︼紝涓鍒囨枃瀛楅兘鐩涜鍦╨ine box閲
闈紝瀹冪殑鎺掔増琛屼负涔熷熀鏈兘鏄拰line box鐩稿叧鐨勶紝杩欓噷璺宠繃line box鑾悕濂囧鍦板幓鎵惧灞
鐨刡lock container锛屽疄鍦ㄦ槸闈炲父璇″紓锛岃屼笖鎴戠浉淇′粠搴旂敤鍦烘櫙涓婏紝涔熶笉浼氭湁浜烘兂瑕佽繖
绉峟loat鍜屾枃瀛楅噸鍙犵殑鎺掔増锛岃繖鏍风殑use case鏍规湰灏变笉瀛樺湪銆

鎵浠ユ垜鎯虫洿濂界殑鍋氭硶鏄皟鏁存暣涓猼ext-overflow鐨勭瓥鐣ワ紝璁╁畠鍙樻垚鍩轰簬line box鍘绘弿杩扮殑銆


/瀵掓硥锛坵inter鍦ㄥ叕鍙哥殑鑺卞悕锛

鍙戜欢浜:  涓涓 <yiorsi@gmail.com>
鏃ユ湡:  2013骞6鏈4鏃ユ槦鏈熶簩 涓嬪崍12:24
鑷:  public-html-ig-zh <public-html-ig-zh@w3.org>, "www-style@w3.org"
<www-style@w3.org>, "Tab Atkins Jr." <jackalmage@gmail.com>
涓婚:  [css3-text-overflow] Question regarding float and text-overflow:
ellipsis(float 鍜 text-overflow: ellipsis 鐨勯棶棰)
閲嶅彂鍙戜欢浜:  <public-html-ig-zh@w3.org>
閲嶅彂鏃ユ湡:  Tue, 4 Jun 2013 04:25:07 +0000

闂婧愪簬杩欎釜璁ㄨ锛
http://lists.w3.org/Archives/Public/www-style/2013Apr/0540.html

鎴戝啓浜嗕竴涓祴璇曠敤渚嬶細http://jsbin.com/afuxid/1/edit

寰楀埌濡備笅缁撴灉锛

http://img02.taobaocdn.com/tps/i2/T1rgC1XANbXXbAUXjT-270-405.png

鍏朵腑锛
Chrome锛孖E8-10 琛ㄧ幇涓鑷达紝鏂囧瓧涓嶉伄鐩 input锛
Opera 涓 Firefox 琛ㄧ幇涓鑷达紝鏂囧瓧閬洊 input锛
Firefox 21 鍦 input 鑾峰緱鐒︾偣鍚庣渷鐣ュ彿娑堝け銆

Webkit bug锛https://bugs.webkit.org/show_bug.cgi?id=115746
Chromium bug锛https://code.google.com/p/chromium/issues/detail?id=237078
Firefox bug锛https://bugzilla.mozilla.org/show_bug.cgi?id=864759

閭d箞鍒板簳鍝竴绉嶆墠鏄鍚堟爣鍑嗙殑锛
text-overflow 瑙勮寖锛http://dev.w3.org/csswg/css-ui/#text-overflow0

浠ヤ笂
涓涓

Received on Tuesday, 4 June 2013 07:17:37 UTC