我有两张桌子,我想彼此相邻。 “mytable”需要以屏幕为中心,“myinput”位于顶部。 “mytable1”需要在“mytable”的右边,甚至是top。我无法设法让代码正确无误。我把一些我在那里尝试过的内联块和右边的东西扔了,然后它将“myinput”移到左边。
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Notes');
var lastrow=sheet.getLastRow();
var lastcolumn=sheet.getLastColumn();
//In Google Script you should specify the range you want I/O from
var range=sheet.getRange(1,1,lastcolumn,lastrow);
//Return 2D Array for all range Values
var all = range.getValues();
for(var j=0; j<=20; j++){
for(var i=0; i<=20; i++){
//Return each value
var all = range.getCell(i + 15, j + 2).getValue();
}
}
答案 0 :(得分:-1)
<div align="center">
<table id="myTable" align="center" style="display: inline-block;">
<tbody>
<tr style="text-align: center;">
<td><input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search by any part of name or speed code" title="Type in a name"></td>
</tr>
<tr>
<td>Albert Einstein College of Medicine</td>
<td>718-904-2444</td>
<td>123</td>
</tr>
<tr>
<td>Bronx Lebanon Hospital Center</td>
<td>718-518-5118</td>
<td>123</td>
</tr>
</tbody></table>
<table id="myTable1" style="display: inline-block;">
<tbody><tr>
<td>1</td>
</tr>
<tr>
<td>2</td>
</tr>
<tr>
<td>3</td>
</tr>
</tbody></table>
</div>