ÓйØÈ¥µôhtmlÖеÄÁ½¶Ë×Ö·û
ÈçºÎÓÐÒ»¸ö×Ö·û´®ÊÇÕâÑùµÄÐÎʽstr = "&bbbLAA";
ÏëµÃµ½"L"µÄ»°¿ÉÒÔÕâÑùȥʵÏÖ£º
//sDataStr = "&bbbLAA";
//sLeftQuote = ""&bbb";
//sRightQuote = "&AA";
µ÷ÓÃÕâ¸ö·½·¨½«µÃµ½L×ֶΡ£
function abCutString( sDataStr, sLeftQuote, sRightQuote)
{
var sReturnVal = '';
var nStartPos = sDataStr.indexOf(sLeftQuote) ;
if (nStartPos < 0) return sReturnVal;
nStartPos += sLeftQuote.length ;
if (nStartPos >=0 ) {
var sWorkStr = sDataStr.substring( nStartPos , sDataStr.length );
var nEndPos = sWorkStr.indexOf(sRightQuote) //- sRightQuote.length + 1;
if ( nEndPos >= 1 ) {
sReturnVal = sWorkStr.substring( 0 , nEndPos );
}
}
return sReturnVal ;
}
Ïà¹ØÎĵµ£º
1. bstrCurPathΪÎļþµÄĿ¼, bstrFileNameΪÎļþÃû;´úÂëÈçÏ£º
//ÀûÓÃIE¿Ø¼þ£¬ä¯ÀÀWORD,pdfµÈÎļþ¡£
void putLocalUrl(CComBSTR bstrCurPath, CComBSTR bstrFileName)
{
//»ñÈ¡IE¿Ø¼þÖ¸Õë
HWND hWnd = GetDlgItem(IDC_EXPLORER);
CComPtr<IUnknown> spUnk;
HRESULT hr = AtlAxGetControl(hWn ......
HTML <!DOCTYPE> ±êÇ©
¶¨ÒåºÍÓ÷¨
<!DOCTYPE> ÉùÃ÷λÓÚÎĵµÖеÄ×îÇ°ÃæµÄλÖ㬴¦ÓÚ <html> ±êǩ֮ǰ¡£´Ë±êÇ©¿É¸æÖªä¯ÀÀÆ÷ÎĵµÊ¹ÓÃÄÄÖÖ HTML »ò XHTML ¹æ·¶¡£
¸Ã±êÇ©¿ÉÉùÃ÷ÈýÖÖ DTD ÀàÐÍ£¬·Ö±ð±íʾÑϸñ°æ±¾¡¢¹ý¶É°æ±¾ÒÔ¼°»ùÓÚ¿ò¼ÜµÄ HTML Îĵµ¡£
ÒÔÏÂÃæÕâ¸ö <!DOCTYPE> ±êǩΪÀý£º
<!DOCTYP ......
.winstonDivClass{ overflow:hidden; zoom:1; }
Èç¹û¸¸divÐèÒª¸ù¾Ý×ÓdivµÄ´óСµÄ±ä»¯¶ø±ä»¯£¬ÄÇôÕâ¸ö¸¸div
ÐèÒª¼ÓÉÏclass="winstonDivClass"
,ÇҸø¸div²»ÄÜÖ¸¶¨heightÊôÐÔ£¬ÆäÖеÄ×ÓdivµÄpositionÊôÐÔ×îºÃΪrelative;
ÓÃzoom:1;´¥·¢ieµÄhaslayout,ÓÃÀ´Ç帡¶¯
¶øoverflow¿ÉÒÔ´¥·¢ie7µÄhaslayout£¬²¢ÔÚFF ......
HTML×Ö·ûʵÌå(Character Entities)
ÓÐЩ×Ö·ûÔÚHTMLÀïÓÐÌرðµÄº¬Ò壬±ÈÈçСÓÚºÅ<¾Í±íʾHTML TagµÄ¿ªÊ¼£¬Õâ¸öСÓÚºÅÊDz»ÏÔʾÔÚÎÒÃÇ×îÖÕ¿´µ½µÄÍøÒ³ÀïµÄ¡£ÄÇÈç¹ûÎÒÃÇÏ£ÍûÔÚÍøÒ³ÖÐÏÔʾһ¸öСÓںţ¬¸ÃÔõô°ìÄØ£¿
Õâ¾ÍҪ˵µ½HTML×Ö·ûʵÌå(HTML Character Entities)ÁË¡£
Ò»¸ö×Ö·ûʵÌå(Character Entity)·Ö³ÉÈý²¿·Ö£ºµÚÒ»²¿· ......