【求解答】我是按照這個代碼復(fù)制到DW中的,為什么預(yù)覽的時候沒有達(dá)到預(yù)期效果,而且,字體還變成了繁體字?
<!DOCTYPE html>
<html>
? <head>
? ? <link rel="stylesheet" >
? ? <style>
? ? ? ? body{padding:10px;margin:10px;}
? ? </style>
? </head>
? <body>
? <div id="slidershow" class="carousel" data-ride="carousel">
? ? <ol class="carousel-indicators">
? ? ? ? <li class="active" data-target="#slidershow" data ? ? ?-slide-to="0">1</li>
? ? ? ? <li data-target="#slidershow" data-slide-to="1">2</li>
? ? ? ? <li data-target="#slidershow" data-slide-to="2">3</li>
? ? </ol>
? ? <!-- 設(shè)置輪播圖片 -->
? ? ? ? <div class="carousel-inner">
? ? ? ? ? ? <div class="item active">
? ? ? ? ? ? ? ? <a href="##"><img src="http://images3.c-ctrip.com/rk/201407/ll580x145.jpg" alt=""></a>
? ? ? ? ? ? ? ? <div class="carousel-caption">
? ? ? ? ? ? ? ? ? ? <h3>圖片標(biāo)題1</h3>
? ? ? ? ? ? ? ? ? ? <p>描述內(nèi)容1...</p>
? ? ? ? ? ? ? ? </div>
? ? ? ? ? ? </div>
? ? ? ? ? ? <div class="item">
? ? ? ? ? ? ? ? <a href="##"><img src="http://images3.c-ctrip.com/dj/201408/zj/zj_580145.jpg" alt=""></a>
? ? ? ? ? ? ? ? <div class="carousel-caption">
? ? ? ? ? ? ? ? ? ? <h3>圖片標(biāo)題2</h3>
? ? ? ? ? ? ? ? ? ? <p>描述內(nèi)容2...</p>
? ? ? ? ? ? ? ? </div>
? ? ? ? ? ? </div>
? ? ? ? ? ? <div class="item">
? ? ? ? ? ? ? ? <a href="##"><img src="http://images3.c-ctrip.com/dj/201408/zqgq_580145.jpg" alt=""></a>
? ? ? ? ? ? ? ? <div class="carousel-caption">
? ? ? ? ? ? ? ? ? ? <h3>圖片標(biāo)題3</h3>
? ? ? ? ? ? ? ? ? ? <p>描述內(nèi)容3...</p>
? ? ? ? ? ? ? ? </div>
? ? ? ? ? ?</div>
? ? ? ? ? </div>
? ? ? ? ? ? <!-- 設(shè)置輪播圖片控制器 -->
? ? ? ? ? <a class="left carousel-control" href="#slidershow" ? ?role="button" data-slide="prev">
? ? ? ? ? ? <span class="glyphicon glyphicon-chevron-left"></span>
? ? ? ? ? </a>
? ? ? ? ? <a class="right carousel-control" href="#slidershow" role="button" data-slide="next">
? ? ? ? ? ? <span class="glyphicon glyphicon-chevron-right"></span>
? ? ? ? ? </a>
? <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
? <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
? </body>
</html>
2016-01-26
這個代碼模版里面沒有指定字符編碼,你可以在head標(biāo)簽里面添加 <meta charset="utf-8">。也可以直接用dw給你的模板,dw有指定的字符編碼gb2312,把慕課網(wǎng)里面head和body里面的內(nèi)容復(fù)制進(jìn)去。這兩種應(yīng)該都能解決顯示的中文字體的問題。還有就是慕課網(wǎng)的這個模板里面用的bootstrap.min.css ,jquery.js和bootstrap.min.js鏈接會被墻住,最好自己去bootstrap下載完整的包來本地引用,jquery也要另外下載到本地引用。此外,還有就是慕課網(wǎng)的課程的圖片也是鏈接的,如果你的圖片沒法顯示,那也是鏈接的問題,自己引用本地圖片。我發(fā)現(xiàn)的是這3個問題,希望能幫到你