|
 |
|
ตัวหนังสือมันย๊าว ยาว เต็มหน้าจอ คือทำเว็บบอร์ดคับ พอให้แสดงความเห็นแล้วดึงข้อมูลมาแสดง ปากรดว่า ตัวหนังสือมันยาว ย๊าว ยาว |
|
 |
|
|
 |
 |
|
nl2br($text);
wordwrap($text,50,"<br>\n",true);
wordwrap(nl2br($text),50,"<br>\n",true);
แต่ตามปกติแล้วถ้าเราพิมพ์ข้อความแล้วมี spaecbar มันก็จะขึ้นบรรทัดใหม่ให้อยู่แล้วนี่ครับ
|
 |
 |
 |
 |
Date :
2009-11-14 23:45:12 |
By :
somparn |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมก้อไม่รู้เหมือนกันคับ ทำไมถึงเป็นเช่นนั้น แต่ขอบคุณมากคับเดี๋ยวผมลองดู ดันไป error ต่อหน้าลูกค้าด้วย....กำ
|
 |
 |
 |
 |
Date :
2009-11-15 00:11:10 |
By :
tcc |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผมแนะนำให้ใช้แค่ nl2br($text); ครับมันจะได้ตัดภาษาไทยได้ถูกต้อง ถ้าใครพิมพ์ติดมานี่ก็ปล่อยไปเถอะ แก้ลำบาก นอกจากเขียนโปรแกรมมาตัดคำภาษาไทย ซึ่งฐานข้อมูลบิ๊กบึ้ม
|
 |
 |
 |
 |
Date :
2009-11-15 00:36:06 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<div style="overflow: auto; width: 600px">555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555</div>
ลองเอาไปวางดู มันจะเบี้ยวไหม
|
 |
 |
 |
 |
Date :
2009-11-17 10:29:11 |
By :
danya |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
กำ นี่ก็เล่น overflow 
|
 |
 |
 |
 |
Date :
2009-11-17 13:28:49 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|