CSS Ellipsis
.TextEllipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
让一个盛Text的容器中的文字不折行,而显示 ...
proven and usable hacks and experience of Internet application development, for my own use.
.TextEllipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
让一个盛Text的容器中的文字不折行,而显示 ...
Posted by
Dillone Hailei Wang 王海磊
at
2/05/2007 05:57:00 PM
Labels: CSS
A control adapter is an optional class that, if present and properly configured, is used to render the Web control instead of using the control's default rendering logic. In short, using control adapters you can take the core functionality of a Web control, but completely customize the markup emitted.
This set of free control adapters, released by Microsoft, provide a set of control adapters that render a variety of built-in ASP.NET controls using preferred CSS techniques.
Moreover, the CSS control adapters ignore any control-level style settings that would get rendered as inline style elements in the rendered markup and instead require that style information be separated out and specified via CSS classes.
While these could be created from scratch, Microsoft has provided the ASP.NET 2.0 CSS Friendly Control Adapters that can be downloaded and plugged into your ASP.NET web applications with minimal effort. Once installed, the control adapters will no longer render inline style attributes (you need to use CSS classes) and replaces the
Posted by
Dillone Hailei Wang 王海磊
at
12/05/2006 07:49:00 PM
Labels: ASP.NET, CSS, Server Control