【发布时间】:2018-06-13 17:00:39
【问题描述】:
idk 我的脚本出了什么问题。该按钮应使用 css 进行样式设置,但我得到的只是 https://ibb.co/cuwixy
CSS
.button {
background-color: #008CBA; /* Blue */
border: none;
color: white;
padding: 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
}
.button5 {border-radius: 50%;}
在 php echo 中的 html 表中编写脚本的按钮
while($row = $result->fetch_assoc()) {
echo "<td><form class='button button5'><input type='button' name='buy' value='buy'/></form></td>";
echo "</tr>";
}
【问题讨论】: