ÎÄÕÂת×Ô¡¾PHP̽·Õß¡¿
XML Ó¦ÓÃÓÚ web ¿ª·¢µÄÐí¶à·½Ã棬³£ÓÃÓÚ¼ò»¯Êý¾ÝµÄ´æ´¢ºÍ¹²Ïí¡£
Èç¹ûÐèÒªÔÚ HTML ÎĵµÖÐÏÔʾ¶¯Ì¬Êý¾Ý£¬ÄÇôÿµ±Êý¾Ý¸Ä±äʱ½«»¨·Ñ´óÁ¿µÄʱ¼äÀ´±à¼ HTML£¬
XML ¿ÉÒÔ°ÑÊý¾Ý´Ó HTML ÖзÖÀ뿪À´¡£
ͨ¹ý XML£¬Êý¾ÝÄܹ»´æ´¢ÔÚ¶ÀÁ¢µÄ XML ÎļþÖС£ÕâÑùÄã¾Í¿ÉÒÔרעÓÚʹÓà HTML ½øÐв¼¾ÖºÍÏÔʾ£¬²¢È·±£Ð޸ĵײãÊý¾Ý²»ÔÙÐèÒª¶Ô HTML ½øÐÐÈκεĸı䡣
ͨ¹ýʹÓü¸ÐÐ JavaScript£¬¾Í¿ÉÒÔ¶ÁÈ¡Ò»¸öÍⲿ XML Îļþ£¨XML½âÎö£©£¬È»ºó¸üРHTML ÖеÄÊý¾ÝÄÚÈÝ¡£
´ó¶àÊýä¯ÀÀÆ÷¶¼ÓжÁÈ¡ºÍ²Ù×÷ XML µÄÄÚ½¨ XML ½âÎöÆ÷¡£
½âÎöÆ÷°Ñ XML ת»»Îª JavaScript ¿É·ÃÎʵĶÔÏó¡£
ÔÚ HTML ÖÐÒÔ±í¸ñÐÎʽÏÔʾXMLÊý¾Ý¾ßÌåʵÀýÈçÏ£º
ÔÎĵØÖ·£ºhttp://www.phpwell.com/?p=71
......
ÎÄÕÂת×Ô¡¾PHP̽·Õß¡¿
XML Ó¦ÓÃÓÚ web ¿ª·¢µÄÐí¶à·½Ã棬³£ÓÃÓÚ¼ò»¯Êý¾ÝµÄ´æ´¢ºÍ¹²Ïí¡£
Èç¹ûÐèÒªÔÚ HTML ÎĵµÖÐÏÔʾ¶¯Ì¬Êý¾Ý£¬ÄÇôÿµ±Êý¾Ý¸Ä±äʱ½«»¨·Ñ´óÁ¿µÄʱ¼äÀ´±à¼ HTML£¬
XML ¿ÉÒÔ°ÑÊý¾Ý´Ó HTML ÖзÖÀ뿪À´¡£
ͨ¹ý XML£¬Êý¾ÝÄܹ»´æ´¢ÔÚ¶ÀÁ¢µÄ XML ÎļþÖС£ÕâÑùÄã¾Í¿ÉÒÔרעÓÚʹÓà HTML ½øÐв¼¾ÖºÍÏÔʾ£¬²¢È·±£Ð޸ĵײãÊý¾Ý²»ÔÙÐèÒª¶Ô HTML ½øÐÐÈκεĸı䡣
ͨ¹ýʹÓü¸ÐÐ JavaScript£¬¾Í¿ÉÒÔ¶ÁÈ¡Ò»¸öÍⲿ XML Îļþ£¨XML½âÎö£©£¬È»ºó¸üРHTML ÖеÄÊý¾ÝÄÚÈÝ¡£
´ó¶àÊýä¯ÀÀÆ÷¶¼ÓжÁÈ¡ºÍ²Ù×÷ XML µÄÄÚ½¨ XML ½âÎöÆ÷¡£
½âÎöÆ÷°Ñ XML ת»»Îª JavaScript ¿É·ÃÎʵĶÔÏó¡£
ÔÚ HTML ÖÐÒÔ±í¸ñÐÎʽÏÔʾXMLÊý¾Ý¾ßÌåʵÀýÈçÏ£º
ÔÎĵØÖ·£ºhttp://www.phpwell.com/?p=71
......
package test;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFPalette;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.util.CellRangeAddress;
public class POIReadExcel {
public static void main(String[] args){
try {
POIReadExcel poire = new POIReadExcel();
String path = "D:\\test.xls";
File sourcefile = new File(path);
In ......
package test;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import jxl.Cell;
import jxl.Range;
import jxl.Sheet;
import jxl.Workbook;
import jxl.format.Alignment;
import jxl.format.Border;
import jxl.format.CellFormat;
import jxl.format.Colour;
import jxl.format.VerticalAlignment;
public class JXLReadExcel {
public static void main(String[] args){
try {
System.out.println(getExcelInfo("D:\\businessStat1.xls"));
//getExcelInfo("D:\\businessStat1.xls");
//getProperties();
//toHexString();
} catch (Exception e) {
e.printStackTrace();
}
}
private static String getExcelInfo(String path) throws Exception{
StringBuffer sb = new S ......
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÄÚÈÝ¡£
HTML±»Éè¼ÆÓÃÀ´ÏÔʾÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÍâ¹Û¡£
Ó¦¸ÃÕÆÎյĻù´¡ÖªÊ¶£º
ÔÚÄú¼ÌÐøѧϰ֮ǰ£¬ÐèÒª¶ÔÒÔÏÂ֪ʶÓлù±¾µÄÁ˽⣺
HTML / XHTML
JavaScript or VBScript
ʲôÊÇXML?
XMLÖ¸¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£¨EXtensible Markup Language£©
XMLÊÇÒ»ÖÖ±ê¼ÇÓïÑÔ£¬ºÜÀàËÆHTML
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý
XML±êǩûÓб»Ô¤¶¨Òå¡£ÄúÐèÒª×ÔÐж¨Òå±êÇ©¡£
XMLʹÓÃÎļþÀàÐÍÉùÃ÷£¨DTD£©»òÕßXML SchemaÀ´ÃèÊöÊý¾Ý¡£
´øÓÐDTD»òÕßXML SchemaµÄXML±»Éè¼ÆΪ¾ßÓÐ×ÔÎÒÃèÊöÐÔ¡£
XMLÊÇÒ»¸öW3C±ê×¼
XMLÊÇÒ»¸öW3C±ê×¼
¿ÉÀ©Õ¹±ê¼ÇÓïÑÔÓÚ1998Äê2ÔÂ10ÈÕ±»È·Á¢ÎªW3C±ê×¼¡£ www.
XMLÓëHTMLµÄÖ÷Òª²îÒì
XML±»Éè¼ÆÓÃÀ´Ð¯´øÊý¾Ý¡£
XML²»ÊÇÓÃÀ´Ìæ´úHTMLµÄ¡£
ÍøÒ³½ÌѧÍø
XMLºÍHTMLΪ²»Í¬µÄÄ¿µÄ¶øÉè¼Æ£º
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÄÚÈÝ¡£
HTML±»Éè¼ÆÓÃÀ´ÏÔʾÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÍâ¹Û¡£
HTMLÖ¼ÔÚÏÔʾÐÅÏ¢£¬¶øXMLÖ¼ÔÚÃèÊöÐÅÏ¢¡£
ûÓÐÈκÎÐÐΪµÄXML
XMLÊDz»×÷ΪµÄ¡£
Ò²ÐíÕâÓеãÄÑÒÔÀí½â£¬µ«ÊÇXML²»»á×öÈκÎÊÂÇé¡£XML±»Éè¼ÆÓÃÀ´½á¹¹»¯¡¢´æ´¢ÒÔ¼°´«ÊäÐÅÏ¢¡£
ÏÂÃæÊÇJaniд¸øToveµ ......
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÄÚÈÝ¡£
HTML±»Éè¼ÆÓÃÀ´ÏÔʾÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÍâ¹Û¡£
Ó¦¸ÃÕÆÎյĻù´¡ÖªÊ¶£º
ÔÚÄú¼ÌÐøѧϰ֮ǰ£¬ÐèÒª¶ÔÒÔÏÂ֪ʶÓлù±¾µÄÁ˽⣺
HTML / XHTML
JavaScript or VBScript
ʲôÊÇXML?
XMLÖ¸¿ÉÀ©Õ¹±ê¼ÇÓïÑÔ£¨EXtensible Markup Language£©
XMLÊÇÒ»ÖÖ±ê¼ÇÓïÑÔ£¬ºÜÀàËÆHTML
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý
XML±êǩûÓб»Ô¤¶¨Òå¡£ÄúÐèÒª×ÔÐж¨Òå±êÇ©¡£
XMLʹÓÃÎļþÀàÐÍÉùÃ÷£¨DTD£©»òÕßXML SchemaÀ´ÃèÊöÊý¾Ý¡£
´øÓÐDTD»òÕßXML SchemaµÄXML±»Éè¼ÆΪ¾ßÓÐ×ÔÎÒÃèÊöÐÔ¡£
XMLÊÇÒ»¸öW3C±ê×¼
XMLÊÇÒ»¸öW3C±ê×¼
¿ÉÀ©Õ¹±ê¼ÇÓïÑÔÓÚ1998Äê2ÔÂ10ÈÕ±»È·Á¢ÎªW3C±ê×¼¡£ www.
XMLÓëHTMLµÄÖ÷Òª²îÒì
XML±»Éè¼ÆÓÃÀ´Ð¯´øÊý¾Ý¡£
XML²»ÊÇÓÃÀ´Ìæ´úHTMLµÄ¡£
ÍøÒ³½ÌѧÍø
XMLºÍHTMLΪ²»Í¬µÄÄ¿µÄ¶øÉè¼Æ£º
XML±»Éè¼ÆÓÃÀ´ÃèÊöÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÄÚÈÝ¡£
HTML±»Éè¼ÆÓÃÀ´ÏÔʾÊý¾Ý£¬Æä½¹µãÊÇÊý¾ÝµÄÍâ¹Û¡£
HTMLÖ¼ÔÚÏÔʾÐÅÏ¢£¬¶øXMLÖ¼ÔÚÃèÊöÐÅÏ¢¡£
ûÓÐÈκÎÐÐΪµÄXML
XMLÊDz»×÷ΪµÄ¡£
Ò²ÐíÕâÓеãÄÑÒÔÀí½â£¬µ«ÊÇXML²»»á×öÈκÎÊÂÇé¡£XML±»Éè¼ÆÓÃÀ´½á¹¹»¯¡¢´æ´¢ÒÔ¼°´«ÊäÐÅÏ¢¡£
ÏÂÃæÊÇJaniд¸øToveµ ......
I needed a tab pane to put some content in my web pages. There are many solutions around
and I must say that they are quite good, but I had some extra requirements that I needed.
I did search around but I did not find what I wanted, so I ended up producing something and now I am sharing
it with you. The idea is not just to share the code but also explain
the issues involved.
The Tabbed Pane Content should be all downloaded with the page
This is quite a Web 2.0 thing, and I must say it was not an absolute requirement, but since I am at it
I may as well do it in a good way.
The requirement is that the content of the panels should be downloaded with the page that defines the panels
and therefore when the user switches panels there will not be any delay, the content is already there
.
The tab Panel should coexist with other content
Quite a few of the tabbed panels around basically take over the content. This simply means that
you design the page around the tabbed pane and it ......
I needed a tab pane to put some content in my web pages. There are many solutions around
and I must say that they are quite good, but I had some extra requirements that I needed.
I did search around but I did not find what I wanted, so I ended up producing something and now I am sharing
it with you. The idea is not just to share the code but also explain
the issues involved.
The Tabbed Pane Content should be all downloaded with the page
This is quite a Web 2.0 thing, and I must say it was not an absolute requirement, but since I am at it
I may as well do it in a good way.
The requirement is that the content of the panels should be downloaded with the page that defines the panels
and therefore when the user switches panels there will not be any delay, the content is already there
.
The tab Panel should coexist with other content
Quite a few of the tabbed panels around basically take over the content. This simply means that
you design the page around the tabbed pane and it ......
1£ºstyle¡¢style.cssText¼°style.position,style.leftµÈCSSÑùʽµÄ¸÷¸öÊôÐÔ
È磺
var section=document.createElement("div");
section.style.cssText="position:absolute; left:200;top:100;border:1 inset blue;width:400;height:400;";
section.style.background="yellow";
section.style.display="block";
section.style.zIndex=5;
¼¸ºõÿ¸öhtml±êÇ©¶ÔÏ󶼾ßÓÐstyleÊôÐÔ£¬Òò´Ë¸ÃÊôÐÔÊÇͨÓõġ£
2£ºinnerHTMLÊôÐÔ
......