µ÷Õûhtml½çÃæ±Ê¼ÇÕûÀí ²»¶Ï¸üÐÂ
Ò»¡¢img+ÎÄ×Ö ÔÚÒ»¸ödiv ÀïÃæÈçºÎ¾ÓÖжÔÆ룿
imgºÍÎı¾ÊÇÁ½ÖÖ²»Í¬µÄ½Úµã ËùÒÔÓõķ½·¨Ò²²»Ò»Ñù
ÎÄ×ÖÖ÷ÒªÒÀ¿¿ ¸¸½ÚµãµÄÐиßÀ´¾ÓÖÐ
¶øimgÐèÒªµÄÊÇ×ÔÉíµÄ´¹Ö±ÖÐÆëÊôÐÔ
div {line-heiht£º25px;height:25px;}
div img {vertical-align:middle;}
ÀýÈ磺
<div id="buttons">
<img src="ZR04.gif" alt="怬" />
<img src="ZR05.gif" alt="×¢²á" />
<a href="#">Íü¼ÇÃÜÂë</a>
</div>
ÕâʱֻҪÎÒÃǸøͼƬ¼ÓÉÏ´¹Ö±¶ÔÆëµÄÊôÐÔ£¬ºóÃæµÄÎÄ×ÖÁ¬½Ó»áÏàÓ¦µÄÓëͼƬˮƽ¶ÔÆ룬¼´£º img{ vertical-align:middle;}¡£µ±´¹Ö±¶ÔÆëÊôÐÔΪ“top”µÄʱºò£¬ÎÄ×ÖÁ´ÓëͼƬ¶¥²¿Ë®Æ½¶ÔÆ룬һ´ÎÀàÍÆ¡£
Èç¹ûÊÇinputÓëÎÄ×ÖÁ´·ÅÔÚÒ»Æð£¬ÔÚffºÍie7¡¢ie8ÖÐÎÄ×ÖÁ´¶¼ÓëͼƬ¶¥²¿Ë®Æ½¶ÔÆ룬µ«ÊÇÔÚie6ÖÐÈ´Êǵײ¿¶ÔÆ룬ͬÑùÎÒÃÇ¿ÉÒÔ¸øinputÌí¼Ó´¹Ö±¶ÔÆëÊôÐÔÀ´´ïµ½¸÷¸öä¯ÀÀÆ÷ÏÔʾЧ¹ûÏàͬµÄÄ¿µÄ¡£
¶þ¡¢ÔÚ IE8 FireFox Chrome CSS ÖÃÖнâ決·½·¨
ÔÚ IE8 還沒³ö來֮ǰ£¬¶¼ÊÇÀûÓà margin: 0 auto; µÄ·½Ê½來½â決 div ÖÃÖеÄ問題£¬µ«ÊÇ這ÔÚ IE8 並沒ÓÐ發揮×÷Óã¬無ЧÁË£¬µ×ÏÂÔÚ網·ÉÏ發現兩種½â·¨£¬·ÖÏí給´ó¼ÒÖªµÀ£º
1. Width:100%
ÔÚ×îÍâ層 div ¼ÓÈë Width:100% µÄ屬ÐÔ£¬³Ìʽ碼ÈçÏ£º
#container {width:100%;}
#centered {width:400px; margin:0 auto;}
2. Text-Align:Center
ÔÚ div tag 裡Ãæ¼ÓÈë Text-Align:Center£¬這樣 IE8 會偵測µ½´Ë語·¨£¬¾Í會·þ從 margin:0 auto; Ö®屬ÐÔ£¬²»過這樣內ÈÝ會±»È«²¿ÖÁÖУ¬Èç¹ûÄúÓÐÐèÒª將Æä div 內ÈÝÍù×ó邊對齊£¬ÄǾͱØ須ÔÚ¼ÓÉÏ語·¨ Text-Align:left£¬µ×ÏÂÊÇ範Àý³Ìʽ碼£º
#container {text-align:center;}
#centered {width:400px; margin:0 auto;text-align:left;}
IE6£¬IE7 則ÊÇÀûÓÃÏÂÃæ語·¨£º
#wrap {
margin: 0px auto; /* firefox */
*margin: 0px auto; /* ie7 */
_margin: 0px auto; /* ie6 */
height:100px;
Ïà¹ØÎĵµ£º
±ê Ìâ: ¡¾·Òë¡¿¹ýÄêÁË£¬Ï×ÉÏСÀñ - ʹÓô¿CÔÚ×Ô¼ºµÄ´°¿ÚÖÐǶÈëHTML¿Ø¼þ
×÷ Õß: xiep
ʱ ¼ä: 2010-01-22,13:42:29
Á´ ½Ó: http://bbs.pediy.com/showthread.php?t=105702
Ç°¶Îʱ¼äÒòΪÏîÄ¿ÐèÒª£¬ËùÒÔ·ÒëÁËÕâƪ£¬Ï£Íû¶ÔijЩÈËÓÐÓá£ÓÉÓÚʱ¼ä²Ö´Ù£¬´íÎóÖ®´¦ÔÚËùÄÑÃ⣬Çë²»ÁßÖ¸³ö¡£
Áí£ºbrowser libΪÎÒ¸ÄдµÄÒ»¸ö¾ ......
Struts -- html:link ±êÇ©µÄʹÓÃ
<html:link> ±êÇ©ÓÃÓÚÉú³ÉHTML <a> ÔªËØ¡£<html:link> ÔÚ´´½¨³¬Á´½Óʱ£¬ÓÐÁ½¸öÓŵ㣺
(1) ÔÊÐíÔÚURL ÖÐÒÔ¶àÖÖ·½Ê½°üº¬ÇëÇó²ÎÊý¡£
(2) µ±Óû§ä¯ÀÀÆ÷¹Ø±ÕCookie ʱ£¬»á×Ô¶¯ÖØдURL£¬°ÑSessionID ×÷ΪÇëÇó²ÎÊý°üº¬ÔÚURL ÖУ¬ÓÃÓÚ¸ú×ÙÓû§µÄSession ״̬¡£
< ......
ÍøÒ³Ô¤¶¨ÒåÑÕÉ«±àÂëÁбí
const unsigned int gl_color_value[] = {
0xF5F5DC,
0x000000,
0xFF0000,
0xD2B48C,
0xFFD700,
0x008080,
0xF0E68C,
0x00FF00,
0x00FFFF,
0x0000FF,
0x00FFFF,
0xFF7F50,
0x008000,
0xFDF5E6 ......
<script language="C#" runat="server">
void Page_Load(Object sender, EventArgs e) {
Message.InnerHtml = "Welcome to ASP.NET";
}
</script>
...
<span id="Message" style="font-size:24" runat="server"/> ......
//»Ø³µ£º[\n\r\t]
$reg="|typeid=\"(.*)\" onsel.*[\n\r\t]*<a href="\" mce_href="\""#\">(.*)</a>|";
preg_match_all ($reg,
$html,
$out, PREG_PATTERN_ORDER);
foreach ($out as $value){
foreach ($value as $value2){
if(strlen($value2)<20)
echo ($value2."<br>");
}
} ......