Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Nirgends! Allerdings ist IE zu doof dazu.Ovaron schrieb:Wo lag denn der Fehler in den drei Zeilen?
<html>
<style>
.tableDetails .innerLeft {
background-color: #caccd7;
text-align: right;
vertical-align: top;
font-weight: bold;
padding: 4px;
border: 1px solid #eeeeee;
}
.tableDetails .innerRight {
background-color: #e0e2e4;
padding: 4px;
border: 1px solid #eeeeee;
}
</style>
<head>
<title>Malleus' TableInsertRowTest</title>
<script type="text/javascript">
var rowIndex=0;
function newRow()
{
var newTr = document.createElement( "TR" );
var newTd = document.createElement( "TD" );
newTd.setAttribute ( 'class', 'innerLeft' );
newTd.innerHTML = "Text" + ( ++rowIndex );
newTr.appendChild( newTd );
var newTd = document.createElement( "TD" );
newTd.innerHTML = "<input type='text'>";
newTr.appendChild( newTd );
var oTableBody = document.getElementById( "myTable" );
if ( oTableBody.firstChild && oTableBody.firstChild.tagName == "TBODY" )
oTableBody = oTableBody.firstChild;
oTableBody.appendChild( newTr );
}
</script>
</head>
<body>
<table id="myTable" border="1" class="tableDetails">
<tbody><tr><td>Dies ist ein ganz doller Test für den IE</td></tr></tbody>
</table>
<input type="button" id="myButton" value="neue Zeile einfügen" onclick="newRow()">
</body>
newTd.className="innerLeft"