第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

為什么第二個(gè)雪碧圖效果出不來(lái)呢?

<!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>無(wú)標(biāo)題文檔</title>
<style>
*{
????margin:0;padding:0;
????}
.box{
????width:190px;
????height:250px;
????background-color:#BBFFEE;
????padding:0?20px;
????font-size:14px;
}
.cont{
????width:190px;
????height:30px;
????margin:8px?auto;
????text-indent:30px;
????color:#AAAAAA;
????border:1px?solid?#acc3e3;
????border-radius:3px;
}????
p?{
???margin-top:5px;
???font-family:"微軟雅黑";
}????
p?input{
????margin-right:5px;
}
p?a{
????float:right;
????text-decoration:none;
}
.cont-2,.cont-3{
????width:100%;
????height:38px;
????margin:12px?auto;
}
.cont-2{
????background:url(http://img1.sycdn.imooc.com//539a972b00013e9102280177.jpg)?no-repeat;
}
.cont-3{
????background:url(http://img1.sycdn.imooc.com//539a972b00013e9102280177.jpg)?0?-38;
}
</style>
</head>
<body>
<div?class="box">
????<form>
????????<input?class="cont"?type="text"?value="郵箱/手機(jī)號(hào)/用戶名"/>
????????<input?class="cont"?type="text"?value="請(qǐng)輸入密碼"/>
????????<p>
????????????<input?type="checkbox"?/>下次自動(dòng)登錄
????????????<a?href="#">忘記密碼?</a>
????????</p>
????????<input?class="cont-2"type="button"/>
????????<hr>
????????<input?class="cont-3"?type="button"/>
????</form>
????
</div>

</body>
</html>

不知道是哪里錯(cuò)了?

正在回答

2 回答

.cont-3{

????background:url(http://img1.sycdn.imooc.com//539a972b00013e9102280177.jpg)?0?-38;

}

這里的-38要加上px

1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

Charliezhang 提問(wèn)者

還真是呢,太感謝了
2015-12-07 回復(fù) 有任何疑惑可以回復(fù)我~
#2

Charliezhang 提問(wèn)者

非常感謝!
2015-12-07 回復(fù) 有任何疑惑可以回復(fù)我~
.cont-3?{
????background:?url(http://img1.sycdn.imooc.com//539a972b00013e9102280177.jpg)?no-repeat;
????background-position:?0?-38px;
}

這樣試一下

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

Charliezhang 提問(wèn)者

還是沒(méi)有效果,不過(guò)還是謝謝你
2015-12-06 回復(fù) 有任何疑惑可以回復(fù)我~
#2

李曉健 回復(fù) Charliezhang 提問(wèn)者

我試過(guò)是可以的
2015-12-06 回復(fù) 有任何疑惑可以回復(fù)我~
#3

Charliezhang 提問(wèn)者 回復(fù) 李曉健

那應(yīng)該代碼沒(méi)有錯(cuò),可是我這邊為什么沒(méi)有效果呢?
2015-12-06 回復(fù) 有任何疑惑可以回復(fù)我~
#4

李曉健 回復(fù) Charliezhang 提問(wèn)者

你看一下是不是報(bào)錯(cuò)了
2015-12-06 回復(fù) 有任何疑惑可以回復(fù)我~
查看1條回復(fù)

舉報(bào)

0/150
提交
取消
CSS Sprite雪碧圖應(yīng)用
  • 參與學(xué)習(xí)       47092    人
  • 解答問(wèn)題       241    個(gè)

必學(xué)的大型網(wǎng)站實(shí)用技術(shù),讓你快速掌握CSS Sprite雪碧圖技術(shù)

進(jìn)入課程

為什么第二個(gè)雪碧圖效果出不來(lái)呢?

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)