不能点击我的链接

时间:2016-01-27 19:51:28

标签: html

我的代码有问题。我尝试在2个文件%.php之间建立连接,但仍然无法正常工作。有人可以帮助我吗?:D这里是索引的代码

<head>
    <title><?php echo $title.$sep.$description; ?></title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="frontend/design/css/bootstrap.min.css" rel="stylesheet">
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
    <link href="frontend/design/css/stylesheet.css" rel="stylesheet" type="text/css"
</head>

<body>
    <div id="wrapper">
        <div>
            Title
        </div>
        <div>
            <a herf="index.php?page=contact">Contact</a>
        </div>
        <div>
            Footer
        </div>
    </div>
</body>

2 个答案:

答案 0 :(得分:3)

拼写href而非herf

<a href="index.php?page=contact">Contact</a>

答案 1 :(得分:0)

请检查是否有拼写错误。

<a herf="index.php?page=contact">Contact</a>

should be <a href...