你好我正在做一个项目我想在桌子上显示图像而不是一个一个地声明如何在CSS中执行while循环方法谢谢:)
或如何通过访问我的数据库来执行循环。
我的代码:
</style>
<form>
<table class="tbl-equipments">
<tbody>
<tr>
<td colspan='4' class='td-search'>
<input type="text" placeholder="Search Equipment.." required/>
<input type="button" value="Reserve" />
<input type="button" value="Cancel" />
</td>
</tr>
<tr>
<td>
<div style="margin: 0 auto; width: 250px height: 250px">
<img src="laptop_icon.jpg" alt="Laptop" style="width: 150px" />
</div>
</td>
<td>
<div style="margin: 0 auto; width: 250px height: 250px">
<img src="laptop_icon.jpg" alt="Laptop" style="width: 150px" />
</div>
</td>
<td>
<div style="margin: 0 auto; width: 250px height: 250px">
<img src="laptop_icon.jpg" alt="Laptop" style="width: 150px" />
</div>
</td>
<td>
<div style="margin: 0 auto; width: 250px height: 250px">
<img src="laptop_icon.jpg" alt="Laptop" style="width: 150px" />
</div>
</td>
</tr>
<tr>
<td>
<div style="margin: 0 auto; width: 250px height: 250px">
<img src="laptop_icon.jpg" alt="Laptop" style="width: 150px" />
</div>
</td>
<td>
<div style="margin: 0 auto; width: 250px height: 250px">
<img src="laptop_icon.jpg" alt="Laptop" style="width: 150px" />
</div>
</td>
<td>
<div style="margin: 0 auto; width: 250px height: 250px">
<img src="laptop_icon.jpg" alt="Laptop" style="width: 150px" />
</div>
</td>
<td>
<div style="margin: 0 auto; width: 250px height: 250px">
<img src="laptop_icon.jpg" alt="Laptop" style="width: 150px" />
</div>
</td>
</tr>
</tbody>
</table>
答案 0 :(得分:0)
使用css属性
function Invoke-SqlPlus
{
param(
[Parameter(Position=0,Mandatory=$true,ValueFromPipeline=$true)]
[string[]]$Query
)
Begin {
$SID=Read-Host 'SID'
$user=Read-Host 'User'
$password=Read-Host 'Password'
# authenticate once here?
}
Process {
foreach ($Q In $Query) {
Write-Verbose $Q
# append ';' if necessary
if ( $Q.substring($Q.length-1) -Ne ';' ) { $Q += ';' }
# execute query
$Q | sqlplus -S "$user/$password@$SID"
}
}
End {
# formally end session here?
}
}
"SELECT sysdate FROM dual","SELECT * FROM all_tables" | Invoke-SqlPlus
只能水平重复,请使用 background-repeat: repeat;
要仅垂直重复,请使用background-repeat: repeat-x
来源:here