当我输入这个PHP代码时,魔术常量_LINE_只是按字面输出.
<!DOCTYPE html>
<html>
<body>
<?php
echo "This is line"._LINE_."blah";
?>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
输出:
This is line_LINE_
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
我一直在使用鲍勃tabors jQuery的视频教程,这里相当长的一段时间了,我不能让jQuery的工作.
这是我的HTML
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="script.js"></script>
<link rel="stylesheet" type="text/css" href="main.css" />
<title>14. Getting Started with jQuery</title>
</head>
<body>
<h1 id="title">14. Getting Started with jQuery</h1>
<p id="first">
<span>Now is the time for all good men to come to
the aid of their country.</span>
</p>
<p id="second">
<strong>In the end these things matter most:
How well did you love? How fully did you live?</strong>
</p>
<p id="third">
<a id="myAnchor" href="http://www.learnvisualstudio.net">Visit my website</a>
</p> …Run Code Online (Sandbox Code Playgroud) body {
margin: 0;
}
.wrap {
width: 800px;
height: 1000px;
position: relative;
margin: auto;
background: #e3e3e3;
}
.box {
width: 400px;
height: 400px;
margin: auto;
background: red;
position: absolute;
left: 20px;
top: 30px;
}
Run Code Online (Sandbox Code Playgroud)
我有一个小标记和一些我正在学习的CSS,请告诉我为什么.wrap哪些包含.box需要是相对的而另一个是绝对的.绝对不是绝对的,也不是相对的.这可能是一个愚蠢的问题,但无论我读了多少教程,我都无法解决这个问题.详细的Anwer请.