2017-03-13 6 views
-3

JavaScript、 CSS、およびPHPをページ上でどのように整理して使用することができますか?私は役に立たなかった。PHPファイル内のCSSとJava

青い背景の白いテキストとします。テキストは90 secondsで消えます。

コードこれまで:

<?php 
 
    if ($_GET["senator"] || $_GET["microphone"]){ 
 
     echo "Please remind". $_GET["senator"]. " to make sure their microphone is" .$_GET["microphone"]. "is on. Thank you."; 
 
\t exit(); 
 
    } 
 
?> 
 

 
<html> 
 
\t <head> 
 
\t \t <title>Room 130</title> 
 
\t \t 
 
\t \t <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> 
 
\t \t <script type="text/javascript"> 
 
\t \t \t $(document).ready(function() { 
 
\t \t \t $('#message').delay("90000").fadeOut(); 
 
\t \t }); 
 
\t \t </script> 
 
\t \t 
 
\t \t <style> 
 
\t \t 
 
\t \t \t #container { 
 
\t \t \t \t display: flex; 
 
\t \t \t \t flex-direction: column; 
 
\t \t \t \t justify-content: center; 
 
\t \t \t \t align-items: center; 
 
\t \t \t \t height: 100%; 
 
\t \t \t } 
 
\t \t 
 
\t \t \t .message { 
 
\t \t \t \t width: 100%; 
 
\t \t \t \t margin: 20px; 
 
\t \t \t \t text-align: center; 
 
\t \t \t } 
 
\t \t \t 
 
\t \t \t body { 
 
\t \t \t \t background-color: #000080; 
 
\t \t \t \t color: white; 
 
\t \t \t \t font-size: 60px; 
 
\t \t \t } 
 
\t \t </style> 
 
\t </head> 
 
<body> 
 
</body> 
 
</html>

+2

[クライアント側とサーバー側のプログラミングの違いは何ですか?](http://stackoverflow.com/questions/13840429/what-is-the-difference-between-client-side-and -server-side-programming) – ShiraNai7

+2

JavaScriptはJavaではありません – ShiraNai7

答えて

0

ちょうど今、それはhtmlタグより上だし、それをHTMLとしてレンダリングされていない...タグ間のphpのチャンクを置きます。

関連する問題