為何打完下面這個(gè)代碼,網(wǎng)頁(yè)是這樣的?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>全局樣式</title>
<link rel="stylesheet" >
</head>
<body>
? ? ? <!-- Main jumbotron for a primary marketing message or call to action -->
? ? ? <div class="jumbotron">
? ? ? ? <h1>Hello, world!</h1>
? ? ? ? <p>This is a template for a simple marketing or informational website. It includes a large callout called a jumbotron and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
? ? ? ? <p><a href="#" >Learn more ?</a></p>
? ? ? </div>
? ??
</body>
</html>
2017-03-31
直接作為靜態(tài)頁(yè)面放在web工程里,然后運(yùn)行服務(wù)器訪(fǎng)問(wèn)就行了
2017-03-22
上面鏈接是無(wú)效的,貌似不能修改,我其實(shí)只是想作為普通文本添加的,然而很少用這個(gè)評(píng)論系統(tǒng)然后就。。。
2017-03-22
這個(gè)顯然是CSS加載問(wèn)題,你打開(kāi)開(kāi)發(fā)者工具直接提示你找不到CSS文件,這是因?yàn)槟悴皇褂胠ocalhost打開(kāi),它不知道你要從網(wǎng)絡(luò)上加載,它會(huì)在本地找,當(dāng)然找不到。你可以有兩種解決方式,第一,如果你配置了localhost,比如Ubuntu默認(rèn)是/var/www目錄,把地址欄www之前(包括www),的部分改成localhost或者127.0.0.1;第二,如果你沒(méi)有配置localhost,補(bǔ)全CDN路徑http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css,最后,建議要么趕緊去配個(gè)本地測(cè)試localhost,要么就用本地的bootstrap就好了嘛。
2017-03-18
<link rel="stylesheet" >
<script src="https://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
在</head>上面加入這個(gè)就可以顯示出來(lái)了
2017-03-17
你這個(gè)link標(biāo)簽里面的bootstrap庫(kù)文件地址有問(wèn)題,換成這個(gè)http://cdn.bootcss.com/bootstrap/4.0.0-alpha.6/css/bootstrap.css試試就好了
2017-03-17
你不可以用雙擊的方式打開(kāi)html啊,在瀏覽器里輸127.0.0.1或者localhost打開(kāi)