我正在尝试添加输入单选按钮,但是在桌面媒体查询上无法单击no选项。虽然它可以用于我的其他媒体查询
我只能认为它不起作用的原因是因为我没有使用数组。我需要两个输入单选按钮组成一个数组吗?奇怪的是,这两个选项在我的其他媒体查询中都起作用。
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
</head>
<body>
</body>
</html>
<?php
include_once __DIR__.'/header2.php';
if(!$_SESSION['u_uid']) {
echo "<meta http-equiv='refresh' content='0;url=index.php?ticket=notlogin'>";
exit();
}
if($_SESSION['u_permission'] == 0) {
echo "<meta http-equiv='refresh' content='0;url=header2.php?ticket=nopermission'>";
exit();
} else {
include_once __DIR__.'/includes/dbh.php';
if ($_SESSION['u_permission'] == 0) {
$_SESSION['u_permission'] = '';
} else {
$_SESSION['u_permission'] = 'Admin';
}
if ($_SESSION['u_moderator'] == 0) {
$_SESSION['u_moderator'] = '';
} else {
$_SESSION['u_moderator'] = 'Moderator';
}
$reply = 'Reply';
$sql = "SELECT * FROM customers_enquiry;";
$stmt = mysqli_stmt_init($conn);
//Prepare the prepared statement
if (!mysqli_stmt_prepare($stmt, $sql)) {
echo 'SQL statement failed';
} else {
//Bind parameters to the placeholder
// mysqli_stmt_bind_param($stmt, "s", $_SESSION['u_uid']);
//Run parameters inside database
mysqli_stmt_execute($stmt);
$result = mysqli_stmt_get_result($stmt);
$resultCheck = mysqli_num_rows($result);
if ($resultCheck < 1) {
echo "<meta http-equiv='refresh' content='0;url=header2.php?ticket=noticket'>";
exit();
} else {
echo '<form action="ticket_reply.php" method="POST">
<table class="ticket">
<tr>
<th colspan="2" class="update_title">Ticket</th>
</tr>';
while($row = mysqli_fetch_assoc($result)) {
if ($row['solved'] == 0) {
$row['solved'] = 'No';
} else {
$row['solved'] = 'Yes';
}
echo '
<tr><th>User ID:</th><td>',htmlspecialchars($row['user_uid']),'</td></tr>
<tr><th>Ticket No:</th><td>',htmlspecialchars($row['ticket']),'<input type="hidden" name="ticket" value="',htmlspecialchars($row['ticket']),'"></td></tr>
<tr><th>First Name:</th><td>',htmlspecialchars($row['first_name']),'</td></tr>
<tr><th>Last Name:</th><td>',htmlspecialchars($row['last_name']),'</td></tr>
<tr><th>Subject:</th><td>',htmlspecialchars($row['subject']),'<input type="hidden" name="subject" value="',htmlspecialchars($reply),'"></td></tr>
<tr><th>Mail From:</th><td>',htmlspecialchars($row['mailfrom']),'</td></tr>
<tr><th>Message:</td></th><td>',htmlspecialchars($row['message']),'</td></tr>
<tr><th>Date Submitted:</th><td>',htmlspecialchars($row['datesubmitted']),'</td></tr>
<tr><th>Date Replied:</th><td>',htmlspecialchars($row['datereplied']),'</td></tr>
<tr><th>Solved:</th><td>',htmlspecialchars($row['solved']),'</td></tr>
<tr><th>View Message:</th><td>',htmlspecialchars($row['view_reply']),'</td></tr>
<tr><th>Replied By:</th><td>',htmlspecialchars($row['replied_by']),' ',htmlspecialchars($_SESSION['u_permission']),' ',htmlspecialchars($_SESSION['u_moderator']),'</td></tr>';
}
echo '<tr><th>Has this been Resolved?</th><td><input type="radio" name="resolve" value="Yes"><label id="yes">Yes</label><input type="radio" name="resolve" value="No"><label id="no">No</label></td></tr>
<tr><th></th><td><textarea name="reply"></textarea></tr></td>
<tr><th>Add Reply/Message</th><td><input type="submit" name="submit" value="Reply"></tr></td>
<div class="ticket_ending">
</div>';
}
echo ' </table>
</form>';
}
}
当我单击单选按钮时,它没有执行任何操作,并且在其上方显示了一个Google翻译按钮...
答案 0 :(得分:0)
我无法发表评论,这就是为什么我回答您的问题!
如果您在桌面上使用IE来测试您的应用程序,则可能会引起问题(使用IE本身不是问题),有时不同的元素相互叠加,第二个元素变得不可点击!
也许您可以使用其他非Microsoft浏览器进行测试,或者在浏览器控制台(F12)中检查是否正确放置了元素,请尝试将z-index添加到不可单击的单选按钮并检查其是否正常工作。