내 코드에있는 버튼은 전혀 변경되지 않으며 모든 div를 나열하려고 시도했지만 여전히 작동하지 않습니다.
다음은 페이지의 코드입니다. php :
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<!-- edit the refrence to show them the different options -->
<link rel="stylesheet" type="text/css" href="IndexopOr.css">
<!--<link rel="stylesheet" type="text/css" href="css/styler.php">-->
<title>Wccs Canteen</title>
</head>
<body>
<h1 class="Top_Text">WCCS Lunch Order</h1>
<div id="Menu-fixer1">
<div id="Menu_fin1">
<img src="WCCS Logo.png" id="lighthouse">
</div>
</div>
<div id="Menu-fixer">
<div id="Menu_fin">
<table>
<tr>
<td>
<!-- this will change when the css source is changed between Indexop1 and Indexop2, currently it is linked to Index, the file i will change when we have decided what we like -->
<a href="#" id="Linker"><span>Menu </span></a>
</td>
</tr>
<tr>
<td>
<a href="#" id="Linker"><span>Order </span></a>
</td>
</tr>
<tr>
<td>
<a href="#" id="Linker" class="Contact_us_link"><span>Contact Us </span></a>
</td>
</tr>
</table>
</div>
</div>
<div id="menu_bar">
<div id="menu_user">
<style type="text/css">
#menu_user {
position: absolute;
right: 10px;
bottom:20%;
font-size: 24px;
color: white;
font-family: HelvLight, verdana;
}
</style>
<?php
//seeing as you like documentation sir i added this in telling you about sessions, remind me to tell you if you want it explained
if (isset($_SESSION['food'])) {
echo 'Student: '.$_SESSION['food'];
echo $_SESSION['ln'];
} else {
echo "You are not logged in!";
}
?>
</div>
<div id="menubar_bottom">
<h1 class="menu_Hpg">Menu</h1>
</div>
</div>
<div id="list_space">
<div id="Right_list">
</div>
<div id="Left_orders">
<button id="but">Confirm</button>
</div>
<!--<div id="Bar"></div>-->
<div id="mid_bar"></div>
</div>
</body>
</html>
그런 다음 CSS 코드 :
#but button {
color:blue;
}
버튼을 편집하는 부분 인 CSS가 많이 있습니다. 왜 작동하지 않는지 알려주세요. 옆에 스타일을 입력하고 추가하면 작동하지만 거기에 호버 옵션을 넣을 수는 없습니다.
#but button
ID가있는 요소 내부의 버튼을 찾고 있음을 의미합니다. 코드에 이러한 상황이 없습니다. ID가있는 버튼이 있지만 다음과 같아야합니다.
button#but
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다