CSS ¸¡¶¯ÔªËØ£¨float£©
ÎÒÃÇ¿ÉÒÔͨ¹ýCSSÊôÐÔfloatÁîÔªËØÏò×ó»òÏòÓÒ¸¡¶¯¡£Ò²¾ÍÊÇ˵£¬ÁîºÐ×Ó¼°ÆäÖеÄÄÚÈݸ¡¶¯µ½Îĵµ£¨»òÕßÊÇÉϲãºÐ×Ó£©µÄÓұ߻òÕß×ó±ß£¨²Î¼ûµÚ9¿Î¹ØÓÚºÐ×´Ä£Ð͵ÄÃèÊö£©¡£ÏÂͼ²ûÃ÷ÁËÆäÔÀí£º
¾Ù¸öÀý×Ó£¬¼ÙÈçÎÒÃÇÏëÈÃÒ»ÕÅͼƬ±»Ò»¶ÎÎÄ×ÖΧÈÆ×Å£¬ÄÇôÆäÏÔʾЧ¹û½«ÈçÏÂËùʾ£º
ÈçºÎʵÏÖÕâ¸öЧ¹û£¿
ÉÏÀýµÄHTML´úÂëÈçÏÂËùʾ£º
<div id="picture">
<img src="bill.jpg" alt="Bill Gates">
</div>
<p>causas naturales et antecedentes,
idciro etiam nostrarum voluntatum...</p>
ҪʵÏÖͼƬÏò×󸡶¯¡¢¶øÇÒ±»ÎÄ×Ö»·ÈƵÄЧ¹û£¬ÄãÖ»ÐèÏÈÉ趨ͼƬËùÔÚºÐ×ӵĿí¶È£¬È»ºóÔÙ°ÑCSSÊôÐÔfloatÉèΪleft¼´¿É£º
#picture {
float:left;
width: 100px;
}
ÏÔʾʾÀý
ÁíÒ»¸öÀý×Ó£ºÁÐ
¸¡¶¯Ò²¿ÉÒÔÓÃÓÚʵÏÖÔÚÎĵµÖзÖÁС£Òª´´½¨¶à¸öÁУ¬ÄãÐèÒªÔÚHTML´úÂëÀïÓÃdivÀ´½á¹¹»¯ÏëÒªµÄ¸÷¸öÁУº
<div id="column1">
<p>Haec disserens qua de re agatur
et in quo causa consistat non videt...</p>
</div>
<div id="column2">
<p>causas naturales et antecedentes,
idciro etiam nostrarum voluntatum...</p>
</div>
<div id="column3">
<p>nam nihil esset in nostra
potestate si res ita se haberet...</p>
</div>
ÏÂÃ棬ÎÒÃǰѸ÷ÁеĿí¶ÈÉ趨Ϊ“33%”£¬²¢Í¨¹ý¶¨ÒåfloatÊôÐÔÁî¸÷ÁÐÏò×󸡶¯£º
#column1 {
float:left;
width: 33%;
}
#column2 {
float:left;
width: 33%;
}
#column3 {
float:left;
width: 33%;
}
ÏÔʾʾÀý
floatÊôÐÔµÄÖµ¿ÉÒÔÊÇleft¡¢right»òÕßnone¡£
clearÊôÐÔ
CSSÊôÐÔclearÓÃÓÚ¿ØÖƸ¡¶¯ÔªËصĺó¼ÌÔªËصÄÐÐΪ¡£
ȱʡµØ£¬ºó¼ÌÔªËؽ«ÏòÉÏÒƶ¯£¬ÒÔÌî²¹ÓÉÓÚÇ°ÃæÔªËصĸ¡¶¯¶ø¿Õ³öµÄ¿ÉÓÿռ䡣ÔÚÇ°ÃæµÄÀý×ÓÖУ¬Îı¾×Ô¶¯ÉÏÒƵ½Á˱ȶû¸Ç´ÄµÄͼƬÅÔ¡£
clearÊôÐÔµÄÖµ¿ÉÒÔÊÇleft¡¢right¡¢both»ònone¡£ÔÔòÊÇÕâÑùµÄ£ºÈç¹ûÒ»¸öºÐ×ÓµÄclearÊôÐÔ±»ÉèΪ“both”£¬ÄÇô¸ÃºÐ×ÓµÄÉϱ߾ཫʼÖÕ´¦ÓÚÇ°ÃæµÄ¸¡¶¯ºÐ×Ó£¨Èç¹û´æÔڵĻ°£©µÄϱ߾à֮ϡ£
<div id="picture">
<img src="bill.jpg" alt="Bill Gates">
</div>
<h1>Bill Gates</h1>
<p class="floatstop">causas naturales et antecedentes,
idciro etiam nostrarum voluntatum...</p>
Òª±
Ïà¹ØÎĵµ£º
¡¡¡¡ÆÁ±ÎIEä¯ÀÀÆ÷£¨Ò²¾ÍÊÇIEϲ»ÏÔʾ£©*:lang(zh) select {font:12px !important;} /*FF,OP¿É¼û£¬ÌرðÌáÐÑ£ºÓÉÓÚOpera×î½üµÄÉý¼¶£¬Ä¿Ç°´Ë¾äֻΪFFËùʶ±ð*/
¡¡¡¡select:empty {font:12px !important;} /*safari¿É¼û*/
¡¡¡¡ÕâÀïselectÊÇÑ¡Ôñ·û£¬¸ù¾ÝÇé¿ö¸ü»»¡£µÚ¶þ¾äÊÇMACÉÏsafariä¯ÀÀÆ÷¶ÀÓеġ£½öIE7ÓëIE5.0¿ÉÒÔʶ±ð*+html ......
<html>
<body>
<table class="t FCK__ShowTableBorders" cellspacing="0" cellpadding="8" width="600" border="0">
<tbody>
<tr>
&n ......
// °´×Ö·û»»ÐÐ
style="word-break: break-all;"
// °´´Ê×é»»ÐÐ
style="word-wrap: break-word;"
==========================================================================
==========================================================================
font-family:Ari ......
½ñÌìÊÜһͬѧµÄίÍУ¬½ÓÁËÒÔ¸öÍøÕ¾µÄÃÀ¹¤µÄ»î£¡Ö÷ÒªÊÇ×öCSS·½ÃæÉè¼ÆµÄÎÊÌ⣬Õâ·½ÃæµÄ¶«Î÷ÎÒ»¹±È½Ïϲ»¶×ö£¬ÒòΪ¶¼ÊÇһЩÃÀºÃµÄ¶«Î÷Â²¢ÇÒËù¼û¼´ËùµÃ¡£
ÆäʵCSSÕâ¸ö¶«Î÷²¢²»ÄÑ£¬±ÈÆðËã·¨ºÍ³ÌÐòÉè¼ÆÈÝÒ׶àÁË£¬ÄѵÃÊÇÔõôÓã¡
CSSÎÞ·Ç°üÀ¨¿ò¼Ü£¬²¼¾Ö£¬×ÖÌ壬ÑÕÉ«£¬ÕâËĸö²¿·Ö¡£
¸öÈ˸оõÏëѧºÃCSSûÓбðµÄ×ÅÊý£¬Ö»ÓÐÈÏÈÏÕæ ......
¼æÈÝIE¡¢FireFox¡¢Chrome
//¼ÓÔØjs
function loadJs(){
if (!getObj('script_PlData')){
var scriptObj= document.createElement("script");
//scriptObj.id = 'script_1';
&nb ......