為何打完下面這個代碼,網頁是這樣的?
<!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
直接作為靜態頁面放在web工程里,然后運行服務器訪問就行了
2017-03-22
上面鏈接是無效的,貌似不能修改,我其實只是想作為普通文本添加的,然而很少用這個評論系統然后就。。。
2017-03-22
這個顯然是CSS加載問題,你打開開發者工具直接提示你找不到CSS文件,這是因為你不使用localhost打開,它不知道你要從網絡上加載,它會在本地找,當然找不到。你可以有兩種解決方式,第一,如果你配置了localhost,比如Ubuntu默認是/var/www目錄,把地址欄www之前(包括www),的部分改成localhost或者127.0.0.1;第二,如果你沒有配置localhost,補全CDN路徑http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css,最后,建議要么趕緊去配個本地測試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>上面加入這個就可以顯示出來了
2017-03-17
你這個link標簽里面的bootstrap庫文件地址有問題,換成這個http://cdn.bootcss.com/bootstrap/4.0.0-alpha.6/css/bootstrap.css試試就好了
2017-03-17
你不可以用雙擊的方式打開html啊,在瀏覽器里輸127.0.0.1或者localhost打開