<div class = "LeftMain" >
<a href = "#" > <button>Go</button></a>
</div>
.LeftMain{
float: left;
width: 600px;
}
.LeftMain {
background: url(Astronaut.jpg);
background-size: 100%;
background-repeat: no-repeat;
}
我正在创建一个迷你项目,而我正在尝试创建一个出现在背景图像前面的按钮,这并不是真的有用,因为它只显示了背景的顶部部分图像以及按钮&#34; Go&#34;。我把这个部分作为它的两个部分,但我现在只谈左侧。那么如何使用背景图像中心的按钮显示完整的背景图像?
答案 0 :(得分:1)
你的意思是这样吗?
vb.net
con.Open()
Dim query As String = <![CDATA[UPDATE firealarm SET Note=@Note
WHERE Note IS NULL
AND Col1 = @ValueOfCol1
AND Col2 = @ValueOfCol2]]>.Value
Dim command As SqlCommand = New SqlCommand(query, con)
With command.Parameters
.Add(New SqlParameter With {.ParameterName = "@Note",
.SqlDbType = SqlDbType.NVarChar,
.Value = Notebox.Text})
.Add(New SqlParameter With {.ParameterName = "@ValueOfCol1",
.SqlDbType = SqlDbType.Int,
.Value = 5})
.Add(New SqlParameter With {.ParameterName = "@ValueOfCol2",
.SqlDbType = SqlDbType.Int,
.Value = 5})
End With
command.ExecuteNonQuery()
con.Close()