![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Ingo Meier wrote: OT ich habe eine Tabelle wie folgt in PHP aufgebaut: .... print "<td><span contenteditable='true' style='border:solid black ^^^^^^^[1] 1px;width:100%;overflow:auto;align=left' name='Information' ^^^^^^^^^^^[2] id='Information'>$row1->inhalt_deu</span></td>"; ^ .... [1] "print" brauchst Du nicht, wenn Du keinen Rückgabewert willst und double quotes sind hier hochgradig ineffizient. [2] Du solltest Dich mal entscheiden, ob Du HTML oder CSS willst. PHP-technisch besser: ?php ... ? td><span contenteditable="true" style="border:solid black 1px; width:100%; overflow:auto; text-align:left" name="Information" id="Information" ?php echo $row1->inhalt_deu; ?></span></td ?php ... ? Allerdings wäre ?php ... ? td contenteditable="true" style="border:solid black 1px; width:100%; overflow:auto;" name="Information" id="Information" ?php echo $row1->inhalt_deu; ?></td ?php ... ? IMHO noch viel besser. Und am allerbesten wäre es, Du würdest contentEditable per Scripting setzen, zwecks Vermeidung von ungültigem HTML. Kommt latür auf Deine Zielgruppe an. /OT so daß sie editierbar (formatierbar) ist. Nur im IE. die Werte werden dann mit dem javascript: document.uebersicht.elements[j].value=document.getElementsByTagName('span')[ i].innerHTML; schuettel/ Bitte lies <http://pointedears.de.vu/scripts/test/whatami "übertragen". [...] HTH PointedEars |
![]() |
| Thread Tools | |
| Display Modes | |
| |