简体   繁体   English

html弯引号打破脚本

[英]html curly quotation marks breaking script

I found this script online for a dropdown multi level navbar which I have been adapting. 我在网上找到了这个脚本,用于我一直在适应的下拉式多级导航栏。 It has now come time to sort all my links out. 现在该是整理所有链接的时候了。 However when I try to add my links, I noticed the use of open and close quote marks. 但是,当我尝试添加链接时,我注意到使用了打开和关闭引号。 When I try and replace them with the default stright one, my css dissapears from the link. 当我尝试将其替换为默认的stright时,我的css从链接中消失了。 This isn't something I have ever come across before. 这不是我以前遇到过的东西。 And I have tried searching but all I come back with is a lot of info on curly vs straight quotation marks. 我曾尝试搜索,但我回来的只是关于大量使用引号和直引号的信息。

    <body>
<div class="container" style="width: 80%; height: 163px">
<div class="bubble" style="left: 6px; top: -31px; width: 1013px; height: 800px; background-image: url('../../images/FreeVector-Striped-Waves1%20copy-1%20(Copy).jpg'); background-repeat: no-repeat"> 
<div class="content">
<div class ="nav_image">
    <img src="../../navbar/backbar.gif" height="114"/><br />
            <nav>
                    <ul style="left: 243px; top: -2px; width: 658px; height: 0px">
                    <li class='active'><a href=”../../homepage.htm“>Home</a></li>
                    <li class='has-sub'><a href=”#“>Cottages</a>
                    <ul>
                        <li class="has-sub"><a href="cottages/farmhouse/farmhouse.htm">Farmhouse</a>
                        <ul>
                            <li><a href="/cottages/farmhouse/facilities.htm">Facilities</a></li>
                            <li><a href="/cottages/farmhouse/guestbook.htm">Guest Book</a></li>
                            <li><a href="/cottages/farmhouse/booking rates.htm">Booking Rates</a></li>
                        </ul>
                        </li>
                        <li class="has-sub"><a href="cottages/granary/granary.htm">Granary</a>
                        <ul>
                            <li><a href="cottages/granary/facilities.htm">Facilities</a></li>
                            <li><a href="cottages/granary/guest book.htm">Guest Book</a></li>
                            <li><a href="cottages/granary/booking rates.htm">Booking Rates</a></li>
                        </ul>
                        </li>
                        <li class="has-sub"><a href="cottages/the barn/the barn.htm">The Barn</a>
                        <ul>
                            <li><a href="cottages/the barn/facilities.htm">Facilities</a></li>
                            <li><a href="cottages/the barn/guest book.htm">Guest Book</a></li>
                            <li><a href="cottages/the barn/guest book.htm">Booking Rates</a></li>
                        </ul>
                        </li>
                    </ul>
                    </li>

<li><a href=”../croyde.htm“>Croyde</a></li>
<li><a href=”../contactus.htm“>Contact us</a></li>

</ul>

</nav>  

Any help on this issue would be greatly appreciated!! 在这个问题上的任何帮助将不胜感激!

Don't use or . 请勿使用 Just use normal quotes " or ' 只需使用普通引号"'

更正" 。从Word文档复制粘贴吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM