search
HomeWeb Front-endHTML TutorialHelp: After adding a statement to the web page, I don't know if it conflicts with the statement, causing the navigation bar and other places to be unable to display Chinese_html/css_WEB-ITnose

css jQuery font html

After defining the font with css, the navigation bar and

;

can display Chinese normally. But After adding the declaration of jquery,
can only display English in the above places. If it is changed to Chinese, nothing will be displayed (the output is empty). Chinese can be displayed normally in other places on the web page. But the jquery function is required (Needed to be used in other parts of the web page), I really don’t know why such a conflict occurs, please solve it, thank you!

Some html related codes are as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title></title><link href="./css/styles.css" rel="stylesheet" type="text/css" /><script src="./js/jquery-1.4.2.min.js" type="text/javascript"></script><script src="./js/cufon-yui.js" type="text/javascript"></script><script src="./js/express_400.font.js" type="text/javascript"></script><link href="./css/nivo-slider.css" rel="stylesheet" type="text/css" /><script type="text/javascript" src="./js/jquery-1.4.2.min.js" language="javascript"></script><script type="text/javascript" src="./js/jquery.tools.min.js" language="javascript"></script><script type="text/javascript" src="./js/jquery.nivo.slider.js"></script><!--[if IE 6]><script defer type="text/javascript" src="http://tf.dtbaker.com.au/template/cute_sweet/brown-baby/js/pngfix.js"></script><![endif]--><!-- start lightbox code --><link rel="stylesheet" href="./css/jquery.lightbox-0.5.css" type="text/css" /><script type="text/javascript" src="./js/jquery.lightbox-0.5.pack.js"></script><script type="text/javascript" src="./js/javascript.js"></script><script type="text/javascript" src="./js/jquery.rounded.js"></script><!-- end lightbox code --><meta charset="UTF-8"></head><body><div id="bg_top">  <div id="wrapper">    <div id="header">      <div id="logo"><a href="./index.html"><img src="/static/imghwm/default1.png"  data-src="./images/logo.png"  class="lazy"      style="max-width:90%"  style="max-width:90%" border="0" alt="Logo" /></a></div>      <div id="header_photos">          <div class="two"></div>          <span class="three"><img src="/static/imghwm/default1.png"  data-src="./images/header-flower3.png"  class="lazy"   alt="3"    style="max-width:90%"  style="max-width:90%" /></span>        <div class="one"><img src="/static/imghwm/default1.png"  data-src="./images/header-flower1.png"  class="lazy"   alt="1"    style="max-width:90%"  style="max-width:90%" /></div>      </div>      <!--end header photos-->      <div id="menu">        <ul id="navigation">          <li><a href="./index.html" class="active">Home</a></li>          <li><a href="./categories.html">Categories</a></li>          <li><a href="./contact.html" style="border:none;">Contact</a></li>        </ul>        <!--end navigation-->      </div>      <!--end menu-->    </div>    <!--end header-->    <div id="content_bg">      <div id="sidebar">        <!-- start menu -->         <div id="menu_string"><img src="/static/imghwm/default1.png"  data-src="./images/tag-string.png"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="string" /></div>        <div id="menu_wrapper">          <div id="menu_header">            <div id="menu_footer">              <h3 id="shop">shop</h3>              <ul>                <li><a href="">New Arrivals</a></li>                <li><a href="">On Sale</a></li>                <li><a href="./categoriea.html">For Newborn (Birth+)</a></li>                <li><a href="./categorieb.html">For Infant (6 Months+)</a></li>                <li><a href="./categoriec.html"For >Toddler (12Months +)</a></li>              </ul>              <br class="clear" />            </div>          </div>        </div>        <!-- end menu -->......       <div class="clear"></div>    </div>    <!--end content bg--> ......   </div>  <!--end wrapper--></div><!--end bg_top--><script type="text/javascript"> Cufon.now(); </script></body></html>


Part of the css related code is as follows:
@charset "utf-8";/* CSS Document */ /*Template Layout*/body {    background-color:#eeebda;    background-image:url(../images/page-bg.jpg);    background-position:top;    background-repeat:repeat;    margin:0px;    padding:0px;    color:#6f5b40;    font-family:Arial, Helvetica, sans-serif, "微软雅黑";    font-size:13px;    line-height:1.5em;     text-align:center; }a, a:link, a:visited {    color:#675237;    outline: none; }a:hover {    color:#af9d87;    text-decoration:none;}#bg_top {     background:url(../images/header.png) center top no-repeat;    min-height: 100%;     text-align:left;    width:100%;    margin-top:80px;}#wrapper {    width:972px;    margin:0px auto;}#header {    height:222px;    width:972px;    margin:0px auto;}/*menu*/#menu {     height:30px;    padding:16px 0 6px 0;    clear:both;}ul#navigation {    margin:0px 0 0 30px;     padding:0px;    float:left;    z-index:100;     width:760px;}ul#navigation li {    float:left;    list-style:none;    display:inline;    padding:0px;    margin:0px;}ul#navigation a {    float:left;     color:#675237;     padding:0px 13px 20px 13px;     text-decoration:none;     font:24px arial, serif, "微软雅黑";    text-transform:lowercase;    letter-spacing:1px; }ul#navigation li.hover a, ul#navigation li:hover a, ul#navigation a.active, ul#navigation a:hover {    color:#8d7e6b; }/* General Content*/h1 {    color:#af9d87;    font-size:30px;    margin:0px;    padding:0px;}h2 {    color:#675237;    font-size:20px;}h3 {    color:#675237;    font-size:18px;}/*side menu tag*/#sidebar {    margin-left:29px;    float:left;}#menu_string {    width:178px;    height:22px;    margin:-20px 0 0 0;    z-index:101; /*makes dropdown sit on top of flash & map*/}#menu_wrapper {    width:178px;    background:url(../images/tag-tile.jpg) repeat-y;    margin:0 0 18px 0;}#menu_header {    width:178px;    background:url(../images/tag-top.jpg) no-repeat top;}#menu_footer {    width:178px;    background:url(../images/tag-bottom.jpg) no-repeat bottom;    min-height:265px;    padding-bottom:40px;}#menu_wrapper h3 {    text-align:center;    margin:0;    padding:20px 0 0 0;    color:#ded6c5;    font-size:24px;}#menu_wrapper ul {    width:178px;    padding:5px 0 0 0;    margin:0;    list-style:none;    color:#846324;    font-size:13px;    font-family:Arial, Helvetica, sans-serif, "微软雅黑";    text-align:center;}#menu_wrapper ul li {    margin:0;    padding:0;    list-style:none;    float:left;    clear:left;}#menu_wrapper ul li a {    display:block;    float:left;    clear:left;    padding:4px;    text-decoration:none;    width:170px;/*178*/    text-align:center;    color:#846324;    line-height:normal;}#menu_wrapper ul li a:hover {    text-decoration:underline;}......

Reply to the discussion (solution)

JQuery statement refers to

<script src="./js/jquery-1.4.2.min.js" type="text/javascript"></script>
?

I messed up the code They all directly create a new file and then copy the ready-made one into it.

JQuery statement refers to

<script src="./js/jquery-1.4.2.min.js" type="text/javascript"></script>
?

If the code is garbled, I just create a new file directly, and then copy the ready-made file into it.


Sorry, the code is not garbled. It can only display English, not Chinese

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Why are HTML attributes important for web development?Why are HTML attributes important for web development?May 12, 2025 am 12:01 AM

HTMLattributesarecrucialinwebdevelopmentforcontrollingbehavior,appearance,andfunctionality.Theyenhanceinteractivity,accessibility,andSEO.Forexample,thesrcattributeintagsimpactsSEO,whileonclickintagsaddsinteractivity.Touseattributeseffectively:1)Usese

What is the purpose of the alt attribute? Why is it important?What is the purpose of the alt attribute? Why is it important?May 11, 2025 am 12:01 AM

The alt attribute is an important part of the tag in HTML and is used to provide alternative text for images. 1. When the image cannot be loaded, the text in the alt attribute will be displayed to improve the user experience. 2. Screen readers use the alt attribute to help visually impaired users understand the content of the picture. 3. Search engines index text in the alt attribute to improve the SEO ranking of web pages.

HTML, CSS, and JavaScript: Examples and Practical ApplicationsHTML, CSS, and JavaScript: Examples and Practical ApplicationsMay 09, 2025 am 12:01 AM

The roles of HTML, CSS and JavaScript in web development are: 1. HTML is used to build web page structure; 2. CSS is used to beautify the appearance of web pages; 3. JavaScript is used to achieve dynamic interaction. Through tags, styles and scripts, these three together build the core functions of modern web pages.

How do you set the lang attribute on the  tag? Why is this important?How do you set the lang attribute on the tag? Why is this important?May 08, 2025 am 12:03 AM

Setting the lang attributes of a tag is a key step in optimizing web accessibility and SEO. 1) Set the lang attribute in the tag, such as. 2) In multilingual content, set lang attributes for different language parts, such as. 3) Use language codes that comply with ISO639-1 standards, such as "en", "fr", "zh", etc. Correctly setting the lang attribute can improve the accessibility of web pages and search engine rankings.

What is the purpose of HTML attributes?What is the purpose of HTML attributes?May 07, 2025 am 12:01 AM

HTMLattributesareessentialforenhancingwebelements'functionalityandappearance.Theyaddinformationtodefinebehavior,appearance,andinteraction,makingwebsitesinteractive,responsive,andvisuallyappealing.Attributeslikesrc,href,class,type,anddisabledtransform

How do you create a list in HTML?How do you create a list in HTML?May 06, 2025 am 12:01 AM

TocreatealistinHTML,useforunorderedlistsandfororderedlists:1)Forunorderedlists,wrapitemsinanduseforeachitem,renderingasabulletedlist.2)Fororderedlists,useandfornumberedlists,customizablewiththetypeattributefordifferentnumberingstyles.

HTML in Action: Examples of Website StructureHTML in Action: Examples of Website StructureMay 05, 2025 am 12:03 AM

HTML is used to build websites with clear structure. 1) Use tags such as, and define the website structure. 2) Examples show the structure of blogs and e-commerce websites. 3) Avoid common mistakes such as incorrect label nesting. 4) Optimize performance by reducing HTTP requests and using semantic tags.

How do you insert an image into an HTML page?How do you insert an image into an HTML page?May 04, 2025 am 12:02 AM

ToinsertanimageintoanHTMLpage,usethetagwithsrcandaltattributes.1)UsealttextforaccessibilityandSEO.2)Implementsrcsetforresponsiveimages.3)Applylazyloadingwithloading="lazy"tooptimizeperformance.4)OptimizeimagesusingtoolslikeImageOptimtoreduc

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft