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

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

為什么字符沒有變成搜索圖標?

http://img1.sycdn.imooc.com//573bbd1f00018cbc13260109.jpg

-----------------------------------代碼

<!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>taobao</title>

<style type="text/css">

@font-face{font-family:iconfont;src:url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.eot);

src: url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.eot?#iefix) format("embedded-opentype"),?

url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.woff") format("woff"),?

url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.ttf") format("truetype"),?

url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.svg#uxiconfont) format("svg")};

body{font:12px/1.5 tahoma,arial,sans-serif;}

a{text-decoration:none;}

.search-container{position:relative;}

.search-tips{float:right;padding:3px 0 0 15px;}

.search-tips a{color:#999}

.search-button{float:right}

.btn-search{

background:url(http://gtms01.alicdn.com/tps/i1/T1qyj8Fc8aXXc4E9bI-400-300.png);

width:100px;

height:45px;

background-position:0 -200px;

border:0;

cursor:pointer;

}

.search-common-panel{

height:39px;

background-color:#f50;

overflow:hidden;

padding:3px 0 3px 77px;

}

.search-common-panel input{

height:39px;

line-height:39px;

width:100%;

border:0 none;

outline:0;

background-color:#fff;

}

.search-common-panel i{

position:absolute;

top:14px;

left:86px;

z-index:2;

}

.iconfont{

font-family:iconfont;

font-size:12px;

font-style:normal;

}

</style>

</head>


<body>

<div class="search-container">

? ? <div class="search-list"></div>

<div class="search-pannel">

? ? ? ? <form>

? ? ? ? ? ? <div class="search-tips">

? ? ? ? ? ? <a href="#">

? ? ? ? ? ? ? ? ? 高級<br/>搜索

? ? ? ? ? ? ? ? </a>

? ? ? ? ? ? ?</div>

? ? ? ? ? ? ?<div class="search-button">

? ? ? ? ? ? ? ? <button class="btn-search" type="submit"></button>

? ? ? ? ? ? ?</div>

? ? ? ? ? ? ?<div class="search-common-panel">

? ? ? ? ? ? ? ? <input type="text" />

? ? ? ? ? ? ? ? <i class="iconfont">?</i>

? ? ? ? ? ? ?</div>

? ? ? ? ? ? </form>

? ? ? ? </div> ? ?

? ? </div>

</body>

</html>


正在回答

3 回答

url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.woff") format("woff"),?

url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.ttf") format("truetype"),?

.woff"以及.ttf"后面有多余的引號

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

對了,忘了問一下,你那個i標簽的是怎么打出來字符集的,怎么轉換的,我是復制你的然后成功的

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

@font-face{font-family:iconfont;src:url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.eot);

src: url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.eot?#iefix) format("embedded-opentype"),?

url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.woff") format("woff"),?

url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.ttf") format("truetype"),?

url(http://g.tbcdn.cn/tb/icon-font/1.1.5/iconfont.svg#uxiconfont) format("svg")};

加粗的那句冗余,和下面設置的src沖突,你改了看看行不行


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

舉報

0/150
提交
取消
搜索框制作
  • 參與學習       66022    人
  • 解答問題       463    個

本課程從簡入深講解搜索框的制作,學習JQ與JS實現Ajax技術的不同點

進入課程

為什么字符沒有變成搜索圖標?

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

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

幫助反饋 APP下載

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

公眾號

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