我正在为我的网站编写一个前端页面,它由代码 igntier 运行,但现在基本上只是视图文件中的 HTML / CSS。
我遇到的问题是我有一个“通知”框,在我所有的 PHP 编辑器中看起来都很好(我主要使用 sublime text 2,但我在 php eclipse 和 notpad++ 中检查我的代码是否有干净的缩进)但是当我打开它时使用浏览器,每个 DIV 上面都有一个 /a,每个评论都用一个
我在谷歌上搜索“充满 ahref 的 HTML”,它只是带来了纽约因飓风桑迪而泛滥的新闻,这对我完全有帮助。
我有连接到 HTML 的社交媒体,但我删除了它并且标签仍然存在。
我有诺顿的谷歌浏览器扩展和我的指纹扫描仪,我禁用了它们,没有任何帮助。
我从我的页面中删除了所有 jquery,除了 src="jquery.js" 拉入 jquery 源。
我什至还尝试重命名所有通知类名称,但没有帮助。
请帮忙!下面是一些源代码:
<div class="notifications">
<a href="#">Notifications <span class="notify-number">2</span></a>
<div class="notifications-container">
<div class='notification'>
<div class='notification-left'><img src="<?php echo base_url(); ?>misc/image/uploads-user.-pics-sample.-pic1.png/40/40"></div>
<!-- End notification Left -->
<div class='notification-right' id="blah">Your friend <span>Alex</span> changed their profile picture.</div>
<!-- End notification right -->
<div class='notification-close'><a href="#">X<a></div>
<!-- End Notification Close -->
<div class="spacer"></div>
</div>
<!-- End Notification -->
<div class='notification'>
<div class='notification-left'><img src="<?php echo base_url(); ?>misc/image/images-icons-calendar.png/40/40"></div>
<!-- End notification Left -->
<div class='notification-right'>"2012 Ending Giveaway" is ending in a day or less! <a href="#">Check it out here!</a></div>
<!-- End notification right -->
<div class='notification-close'><a href="#">X<a></div>
<!-- End Notification Close -->
<div class="spacer"></div>
</div>
<!-- End Notification -->
<div class='notification'>
<div class='notification-left'><img src="<?php echo base_url(); ?>misc/image/images-icons-document.png/40/40"></div>
<!-- End notification Left -->
<div class='notification-right'>There are new tutorials for you to view! <a href="#">Check here to view tutorials!</a></div>
<!-- End notification right -->
<div class='notification-close'><a href="#">X<a></div>
<!-- End Notification Close -->
<div class="spacer"></div>
</div>
<!-- End Notification -->
<div class='notification'>
<div class='notification-left'><img src="<?php echo base_url(); ?>misc/image/images-icons-video.png/40/40"></div>
<!-- End notification Left -->
<div class='notification-right'>There is new videos for you to view! <a href="#">Check here to view videos!</a></div>
<!-- End notification right -->
<div class='notification-close'><a href="#">X<a></div>
<!-- End Notification Close -->
<div class="spacer"></div>
</div>
<!-- End Notification -->
<div class='notification'>
<div class='notification-left'><img src="<?php echo base_url(); ?>misc/image/images-icons-video.png/40/40"></div>
<!-- End notification Left -->
<div class='notification-right'>Your friend <span>Izikea</span> added a new video! <a href="#">Check here to see it!</a></div>
<!-- End notification right -->
<div class='notification-close'><a href="#">X<a></div>
<!-- End Notification Close -->
<div class="spacer"></div>
</div>
<!-- End Notification -->
<div class='notification'>
<div class='notification-left'><img src="<?php echo base_url(); ?>misc/image/images-icons-document.png/40/40"></div>
<!-- End notification Left -->
<div class='notification-right'>Your friend <span>Izikea</span> added a new tutorial <a href="#">Check here to see it!!</a></div>
<!-- End notification right -->
<div class='notification-close'><a href="#">X<a></div>
<!-- End Notification Close -->
<div class="spacer"></div>
</div>
<!-- End Notification -->
<div class='notification'>
<div class='notification-left'><img src="<?php echo base_url(); ?>misc/image/images-icons-post.-wall.png/40/40"></div>
<!-- End notification Left -->
<div class='notification-right'>Your friend <span>Izikea</span> posted on your wall <a href="#">Check here to see it!!</a></div>
<!-- End notification right -->
<div class='notification-close'><a href="#">X<a></div>
<!-- End Notification Close -->
<div class="spacer"></div>
</div>
<!-- End Notification -->
</div>
<!-- End Notifications Container -->
</div>
<!-- End Notifications -->
这是我在页面上的社交媒体。
<div class="social-media">
<div class="facebook-like-button">
<div class="fb-like" data-href="http://www.grosource.com" data-send="true" data-layout="button_count" data-width="150" data-show-faces="false"></div>
</div>
<div class="twitter-follow-button">
<a href="https://twitter.com/GroSource" class="twitter-follow-button" data-show-count="false" data-lang="en">Follow @twitterapi</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<div class="twitter-tweet-button">
<a href="http://www.grosource.com/" class="twitter-share-button" data-lang="en">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<div class="google-plus-button">
<!-- Place this tag where you want the +1 button to render. -->
<g:plusone size="medium" href="http://www.grosource.com/"></g:plusone>
<!-- Place this tag after the last +1 button tag. -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</div>
</div>
如果您需要更多,请告诉我。
谢谢,大卫