亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

當@font-face出現后第一個字體圖標glyphicon-envelope出現問題是什么問題

<style>

.glyphicon-envelope{

color: red;

font-size: 100px;

}

@font-face{

font-family:'Glyphicons Halflings';

src:url(fonts/glyphicons-halflings-regular.eot);

src:url(fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),

url(fonts/glyphicons-halflings-regular.woff2) format('woff2'),

url(fonts/glyphicons-halflings-regular.woff) format('woff'),

url(fonts/glyphicons-halflings-regular.ttf) format('truetype'),

url(fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}

</style>

</head>

<body>

<!--字體圖標,放大不會失真bootstrap組件Glyphicons 字體圖標;阿里巴巴矢量圖標庫-->

<span class="glyphicon glyphicon-envelope"></span>

<button class="btn btn-default">

<span class="glyphicon glyphicon-star"></span>這是一個按鈕

</button>


正在回答

3 回答

我是老師的寫法改成這個就完美了<link rel="stylesheet" > ?

0 回復 有任何疑惑可以回復我~

Failed to load resource: the server responded with a status of 404 (Not Found)

這樣的錯誤,如果將@font-face注釋掉glyphicon-envelope這個就可以顯示,但是star就不能顯示了

<link rel="stylesheet" type="text/css" href="css/css/bootstrap.min.css"/>

.glyphicon-envelope{

color: red;

font-size: 100px;

}

@font-face{

font-family:'Glyphicons Halflings';

src:url(fonts/glyphicons-halflings-regular.eot);

src:url(fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),

url(fonts/glyphicons-halflings-regular.woff2) format('woff2'),

url(fonts/glyphicons-halflings-regular.woff) format('woff'),

url(fonts/glyphicons-halflings-regular.ttf) format('truetype'),

url(fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}

</style>

</head>

<body>


<span class="glyphicon glyphicon-envelope"></span>

<button class="btn btn-default">

<span class="glyphicon glyphicon-star"></span>這是一個按鈕

</button>

</body>

0 回復 有任何疑惑可以回復我~

出現問題報錯是怎么說的呢? 復制你的代碼,這樣寫是沒有出現問題的

<link rel ="stylesheet" href="css/bootstrap.min.css">

<style>

.glyphicon-envelope{

color: red;

font-size: 30px;

}

</style>

</head>

<body>

<span class="glyphicon glyphicon-envelope"></span>

<button class="btn btn-default">

<span class="glyphicon glyphicon-star"></span>這是一個按鈕

</button>

</body>

</html>

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

當@font-face出現后第一個字體圖標glyphicon-envelope出現問題是什么問題

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號