小编Nih*_*ahu的帖子

PHP魔术常量不起作用

当我输入这个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)

我究竟做错了什么?

php magic-constants

0
推荐指数
1
解决办法
391
查看次数

jQuery不适合新手

我一直在使用鲍勃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)

html javascript jquery

0
推荐指数
1
解决办法
65
查看次数

我不理解CSS中的绝对和相对定位

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请.

html css position

-1
推荐指数
1
解决办法
2068
查看次数

标签 统计

html ×2

css ×1

javascript ×1

jquery ×1

magic-constants ×1

php ×1

position ×1