CSS¼æÈÝÐÔ£¨2£© text overflow
Ò»Ö±ÒÔÀ´ÎÒ¶¼ÒÔΪcssÊÇÎÞ·¨ÏÞÖÆ×Ö·û³¤¶ÈµÄ£¬×î½ü²Å·¢ÏÖÔÀ´¿ÉÒÔÕâÑù.×î¼òµ¥µÄ¼æÈÝ·½·¨£º
.textOverflow {
width:100px;
white-space:nowrap;/*ÏÞÖƵ¥ÐÐÊä³ö*/
text-overflow:ellipsis;/*Ö»Ö§³ÖIE6(+)*/
overflow: hidden;
-o-text-overflow: ellipsis;/*OperaרÓÃ*/
-moz-binding: url('ov.xml#ellipsis');/*firefoxÏÂʵÏÖÒªÅäÌ׶ÔÓ¦µÄxmlÎļþ*/
}
/*.xulÊÇΪ<xul:description>Ìí¼ÓµÄclassÊôÐÔ*/
.xul{
color:#fff;
}
html´úÂ룺
<div class="textOverflow">¿é¼¶ÔªËؿ鼶ԪËؿ鼶ԪËؿ鼶ԪËؿ鼶ԪËؿ鼶ԪËØ</div>
¸ùĿ¼ÏÂov.xmlÎļþ´úÂ룺
<?xml version="1.0" encoding="utf-8"?>
<bindings
xmlns="http://www.mozilla.org/xbl"
xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<binding id="ellipsis">
<content>
<xul:description class="xul" crop="end" xbl:inherits="value=xbl:text"><children/></xul:description>
</content>
</binding>
</bindings>
ÏÖÔÚÍøÉϺܶàÊÇÁ÷ÐÐjs·½·¨À´¼æÈÝffµÄ£¬ÆäʵÉÏÊö½éÉܵÄÊÇÓÃÁËxul:descriptionµÄ·½·¨,^_^ÎÒÒ²²»ÖªµÀÄÇÊÇɶÀ´µÄ£¬²»¹ýÕâÑùдºÜ¼ò½à¡£
¹ØÓÚxulµÄ½Ì³Ì¡¶XUL½Ì³Ì¡·
Ïà¹ØÎĵµ£º
ÓÃCSSÈÃÔªËؾÓÖÐÏÔʾ²¢²»ÊǼþºÜ¼òµ¥µÄÊÂÇ顣ͬÑùµÄCSS¾ÓÖÐÉèÖÃÔÚ²»Í¬ä¯ÀÀÆ÷ÖеıíÏÖÒ²¸÷ÓÐǧÇï¡£±¾ÎľͽéÉÜÁËÔÚCSSÖг£¼ûµÄ¼¸ÖÖÈÃÔªËØˮƽ¾ÓÖÐÏÔʾµÄ·½·¨¡£
¡¡¡¡1.ʹÓÃ×Ô¶¯Íâ±ß¾àʵÏÖ¾ÓÖÐ
¡¡¡¡CSSÖÐÊ×Ñ¡µÄÈÃÔªËØˮƽ¾ÓÖеķ½·¨¾ÍÊÇʹÓÃmarginÊôÐÔ—½«ÔªËصÄmargin-leftºÍmargin-rightÊôÐÔÉèÖÃΪauto¼´¿É¡£ÔÚʵ¼ÊʹÓà ......
magento¸ö±ðÒ³ÃæÌí¼ÓcssºÍjsÎļþ£¬¿ÉÒÔ½«Æä·ÅÔÚ¸ö±ðÒ³ÃæµÄxmlÖУ¬»òÕß·ÅÔÚCMSµÄlayout updateÖУ¬Æä´úÂëºÍÎļþ´æ·ÅλÖÃÈçÏÂ
<reference name="head">
<action method="addCss"><stylesheet>css/mystyles.css</stylesheet></action>
//Ìí¼Ócss mystyles.css ÎļþÔÚ /skin/frontend/Ö÷Ìâ ......
Õâ¸öϵÁпÉÄÜÐÂÊÖ¶ÁÆðÀ´±È½ÏÂý£¬µ«ÎÒ¾¡Á¿ÓÃÒ׶®µÄ·½Ê½½²½â£¬ÒòΪÎÒÔø¾ÊdzõѧÕߣ¬ÎÒÖªµÀ´ó¼ÒÏëÖªµÀʲô¡£Ò»ÕÅÍøÃæÆäʵҳÃæÄÚÈÝÊDZȽÏÖØÒªµÄ£¬Í¼ÏñÊÇÊôÓÚ½õÉÏÌí»¨£¬µ±È»ÍøÒ³µÄÅÅ°æÒ²ºÜÖØÒª¡£ÔÚCSS½ÒÃØѧϰµÄµÚÒ»Õ¾£¬Ê×ÏÈҪѧϰһÏÂÎÄ×ÖºÍÎı¾£¬Èôó¼Ò¶ÔcssÓиö³õ²½µÄÈÏʶ¡£
&nb ......
ÍøÒ³Éè¼Æ»òÐí¶ÔºÜ¶àÈËÀ´ËµÊǸöÈëÃÅÃż÷ºÜµÍµÄ¼¼Êõ,µ«ÊÇÒªÕæÕýÕÆÎÕdiv+cssÍøÒ³Éè¼ÆµÄ¾«»ª»¹ÊÇÐèÒª¿¿²»¶ÏµÄŬÁ¦ºÍʵ¼ù²ÅÄÜ´ïµ½,ÄÇôÎÒÃÇÓ¦¸ÃÈçºÎѧϰdiv+cssÍøÒ³Éè¼ÆÄØ?
CSSѧϰÖØÔÚ·½·¨
ѧϰÈκζ«Î÷¶¼ÊÇÒ»Ñù£¬´ÓСѧ¡¢ÖÐѧ¡¢´óѧ£¬³ýÁËѧϰ֪ʶÍâ¾ÍÊÇȥѧϰ·½·¨£¡
ÒªÏë°ÑÎÕCSS, Ê×ÏÈҪѧ»áHTML£¬ÎÒ¸Õ¿ªÊ¼ÊÇ´ÓÁ㿪ʼѧϰµ ......
1) ±àÒëCSS×ÊÔ´
Îļþä¯ÀÀÆ÷£¨Navigator£©ÖУ¬ÔÚ±ê×¼µÄFlex CSSÎļþÉϵã»÷ÓÒ¼ü£¬µã»÷Compile CSS to SWF¼´¿ÉÍê³É±àÒëCSSµÄÈÎÎñ¡£
ÔÚ³ÌÐòÖпÉÒÔÓÃStyleManager.loadStyleDeclarations()À´¶Á³öÒѱàÒëºÃµÄCSSÎļþÖеÄÄÚÈÝ¡£
¾ßÌå²Ù×÷ÈçÏÂ:
&nbs ......