Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

struts1±êÇ©Ö®html:optionsCollection

ÎÒÃdz£³£°ÑÒ»×鼯ºÏ·Åµ½Ã¿¸öÒ³ÃæµÄÏÂÀ­¿òÖУ¬ÕâÀïÀûÓÃstruts1µÄhtml:optionsCollection¿ÉÒÔÊ¡ºÜ¶àÊ¡£
¾Ù¸öÀý×Ó£º
дһ¸ö¹«¹²¾²Ì¬·½·¨£º
public static Collection<LabelValueBean> getAllType() {
Collection<LabelValueBean> col = new ArrayList<LabelValueBean>();
col.add(new LabelValueBean("ËùÓÐÖÕ¶Ë", ""));
col.add(new LabelValueBean("2GÈ«²¿", "1%"));
col.add(new LabelValueBean("2GÊÖ»ú", "101"));
col.add(new LabelValueBean("3GÈ«²¿", "2%"));
col.add(new LabelValueBean("3GÊÖ»ú", "201"));
col.add(new LabelValueBean("3GÊý¾Ý¿¨", "202"));
col.add(new LabelValueBean("3GÉÏÍø±¾", "203"));
col.add(new LabelValueBean("3G¼ÒÍ¥Íø¹Ø", "204"));
col.add(new LabelValueBean("3GÎÞÏ߹̻°", "205"));
return col;
}
È»ºóÔÚÇëÇóactionµÄʱºò·Åµ½requestÖС£È磺request.setAttribute£¨"types",xxx.getAllType()£©;
ÔÚÒ³ÃæÉÏ¿ÉÒÔÏÔʾΪ£º
<nested:select property="yourproperty">
      <html:optionsCollection name="types"/>
</nested:select>
ÕâÑù¾Í¿ÉÒÔÔÚÒ³ÃæÉϵõ½Ò»¸öÏÂÀ­ÁÐ±í£¬ÕâÑù×öµÄºÃ´¦Ö®Ò»¾ÍÊÇÊéд¼òµ¥£¬·½±ãºóÆÚά»¤


Ïà¹ØÎĵµ£º

HtmlÖÐLabel±ê¼ÇµÄ×÷ÓúÍʹÓýéÉÜ


HtmlÖÐLabel±ê¼ÇµÄ×÷ÓúÍʹÓýéÉÜ
Label±êʶÓÐÁ½¸öÊôÐÔ£¬Ò»¸öÊÇFOR£¬Ò»¸öÊÇACCESSKEY¡£
FORµÄÒâ˼ÊÇ£¬Õâ¸öLableÊÇΪÄĸö¿Ø¼þ·þÎñµÄ£»
ACCESSKEYÔò¶¨ÒåÁË·ÃÎÊÕâ¸ö¿Ø¼þµÄÈȼü¡£
±ÈÈ磬ÓÐÒ»¸öÃû×Ö½ÐNameµÄÎı¾¿ò£¬<INPUT TYPE="TEXT" ID="Name" SIZE=30>£¬
ÄÇô£¬<label>¾Í¿ÉÒÔ¶¨Òå³É£º<LABEL FOR="Nam ......

²âÊÔÓï·¨¸ßÁÁµÄ C# ´úÂëµÄ html fragment Éú³É

²âÊÔÓï·¨¸ßÁÁµÄ C# ´úÂëµÄ html fragment Éú³É:
ÓÃcsdn blog API ·¢²¼.
ÏÂÃæÊÇ:
public class HtmlWriter
{
   static Dictionary _colors;
   static int _colorNum;
   static StringBuilder _colorString;

½«HTMLÒ³ÃæǶÈëFLEXÓ¦ÓÃÖÐ

ÏÈÓÃÏֳɵÄ×é¼þÍæһϣ¬Ò»»áÔÙÈ¥¿´¿´×é¼þÔ´ÂëÑо¿Ò»Ï¡£
http://code.google.com/p/flex-iframe/
ÏÂÔØÁËflexiframe.swc£¬ÒýÈ빤³Ì¡£
flex´úÂë
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="absolute"
   ......

×ßÈëWebÐÂʱ´ú ÎÒÃÇÈçºÎÏòHTML 5¹ý¶É£¿

ÈçºÎÏòHTML 5¹ý¶É£¿
¡¡¡¡Web¿ª·¢ÉçÇøµÄ²»ÉÙÈËÈÏΪתÏòHTML 5Òª½÷É÷¡£±ÈÈ磬ËäȻ΢Èí¼Æ»®ÔÚIE9ÖÐÖ§³ÖHTML 5£¬µ«Õâ¼ÒÈí¼þÒµ¾Þ뢶ÔÓÚÔÚHTML 5»¹Ã»ÓÐÕýʽ³ÉΪ±ê׼֮ǰ֧³ÖËüÐÄ´æÒÉÂÇ¡£Î¢ÈíWindowsÊÂÒµ²¿×ܲÃSteven Sinofsky×î½ü½ÓÊܲɷÃʱ±íʾ£º“ÏÈ˵×Ô¼º»ùÓÚ±ê×¼£¬µ«ËæºóÓÖ˵ÄãÊÇ×î¼æÈÝHTML 5µÄä¯ÀÀÆ÷£¬ÕâÖÖ×ö·¨²»Ã÷ÖÇ£ ......

HTML ±êÇ©


¶¨ÒåºÍÓ÷¨
<!DOCTYPE> ÉùÃ÷λÓÚÎĵµÖеÄ×îÇ°ÃæµÄλÖ㬴¦ÓÚ <html> ±êǩ֮ǰ¡£´Ë±êÇ©¿É¸æÖªä¯ÀÀÆ÷ÎĵµÊ¹ÓÃÄÄÖÖ HTML »ò XHTML ¹æ·¶¡£
¸Ã±êÇ©¿ÉÉùÃ÷ÈýÖÖ DTD ÀàÐÍ£¬·Ö±ð±íʾÑϸñ°æ±¾¡¢¹ý¶É°æ±¾ÒÔ¼°»ùÓÚ¿ò¼ÜµÄ HTML Îĵµ¡£
ÒÔÏÂÃæÕâ¸ö <!DOCTYPE> ±êǩΪÀý£º
<!DOCTYPE html
PUBLIC "-//W3C//DT ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ