<span><input type="checkbox" class="checkbox" name="autologin" id="autologin"><label for="autologin">下次自動(dòng)登錄</label></span> <a class="forget" href="#">忘記密碼?</a>
<br>
<input type="button" class="enter" >
<hr>
<input type="button" class="regedit" >
</form>
</div>
<br>
<input type="button" class="enter" >
<hr>
<input type="button" class="regedit" >
</form>
</div>
2015-11-07
<div>
<form>
<input type="text" class="user" placeholder="郵箱/手機(jī)號(hào)/用戶名" >
<br>
<input type="password" class="key" placeholder="請(qǐng)輸入密碼">
<br>
<form>
<input type="text" class="user" placeholder="郵箱/手機(jī)號(hào)/用戶名" >
<br>
<input type="password" class="key" placeholder="請(qǐng)輸入密碼">
<br>
2015-11-07
.forget{text-decoration:none;font-size:13px;float:right; margin:3px 000;}
.enter{display:block;width:180px;height:40px;background-position:0 0;margin:10px 0;}
.regedit{display:block;width:180px;height:40px;background-position:0 -38px;margin:10px 0;}
hr{border:1px solid #dedede;}</style>
.enter{display:block;width:180px;height:40px;background-position:0 0;margin:10px 0;}
.regedit{display:block;width:180px;height:40px;background-position:0 -38px;margin:10px 0;}
hr{border:1px solid #dedede;}</style>
2015-11-07
<style>
form{width:180px;background:#EBF3FA;padding:10px;}
input{background:url(http://img1.sycdn.imooc.com//539a972b00013e9102280177.jpg) }
input.user,.key{background:#ffffff;border:1px solid #dedede;padding:5px 0; margin-bottom:10px; text-indent:2em;width:180px;}
label{font-size:13px;}
form{width:180px;background:#EBF3FA;padding:10px;}
input{background:url(http://img1.sycdn.imooc.com//539a972b00013e9102280177.jpg) }
input.user,.key{background:#ffffff;border:1px solid #dedede;padding:5px 0; margin-bottom:10px; text-indent:2em;width:180px;}
label{font-size:13px;}
2015-11-07
最贊回答 / 慕數(shù)據(jù)0204790
首先,不應(yīng)該使用<table>標(biāo)簽,因?yàn)?lt;table>標(biāo)簽現(xiàn)在已經(jīng)過時(shí)了(就好像現(xiàn)在你稱呼別人為‘同志’的情況是一樣的),然后div應(yīng)該不設(shè)置高度,讓里面的元素自動(dòng)撐開就行了,其次代碼還可以簡(jiǎn)化,比如你的登錄和注冊(cè)按鈕都引用同一張背景圖片,可以簡(jiǎn)寫在一行代碼中。最后,‘忘記密碼?’不應(yīng)該加空格把它稱到右邊,應(yīng)該使它浮動(dòng)到右邊(float:right)
2015-11-04
最贊回答 / 言言言小魚
現(xiàn)在來看,是可以對(duì)雪碧圖使用backgroud-size屬性的。<...圖片...>background-size跟容器寬高成正比。
2015-11-04
已采納回答 / pardon110
css背景圖中的坐標(biāo)是以左上角頂點(diǎn)為原點(diǎn),向右的x方向?yàn)檎较?,向下的y方向?yàn)檎较?,并非是以?shù)學(xué)上的象限規(guī)則。
2015-11-03
*{margin:0;padding:0;}
h3{font-weight:normal;font-size:20px;text-align:center;}
ul{list-style:none;}
li{display:block;height:31px;line-height:31px;border-bottom:1px solid #a9a9a9;}
.cat{background-color:#dcdcdc;width:150px;border:1px solid #a9a9a9;}
h3{font-weight:normal;font-size:20px;text-align:center;}
ul{list-style:none;}
li{display:block;height:31px;line-height:31px;border-bottom:1px solid #a9a9a9;}
.cat{background-color:#dcdcdc;width:150px;border:1px solid #a9a9a9;}
2015-11-03