like in HTML, I could write <a href="#id">
which could link to the place where I make a <a id="id">
. but it seems that it does not work in PHP. How to do that?怎样写像<a href="#id"> which link to the same page in PHP?
the original code is from bootstrap http://twitter.github.com/bootstrap/components.html#navs
<div class='tabbable'>
<ul class='nav nav-tabs'>
<li class='active'><a href='#tab1' data-toggle='tab'>Drinks</a></li>
<li><a href='#tab2' data-toggle='tab'>Bread</a></li>
</ul>
<div class='tab-content'>
<div class='tab-pane active' id='tab1'><p>some</p>
</div>
<div class='tab-pane' id='tab2'><p>many</p>
</div>
</div>
,但只是当我转过身来,PHP,标签链接不起作用链接
这是同样的链接,如果它在PHP或HTML起源。什么不符合你的期望? – 2013-03-20 22:07:46
确保你的标记格式正确,并且你没有重复id,例如。发布一些用于检查的代码... – 2013-03-20 22:09:10
实际上,我使用的是bootstrap http://twitter.github.com/bootstrap/components.html#navs中的代码。因为我想连接到数据库,所以我使用PHP。但标签部分只是不起作用... – user1888625 2013-03-20 22:15:54