關于圖片的問題
<html>
<head>
<style type="text/css">
*{padding:0px;margin:0px}
body{background-color:#19da9e}
.aa{width:1700px;height:890px;background:yellow;margin:0 auto;position:relative;}
.tu{width:60px;height:40px;float:left;background:red;}
.ff1{width:200px;height:40px;line-height:40px;background:#ffffff;outline:none;float:left;}
.ff2{width:50px;height:40px;float:left;}
.qq{width:320px;height:42px;position:absolute;top:300px;left:200px}
</style>
</head>
<body>
<div class="aa">
<div class="qq">
<div class="tu"></div>
<from>
<input type="text" class="ff1"/>
<input type="submit" class="ff2" value=""/>
</from>
</div>
</div>
</body>
</html>
求教下大神一個問題。先謝謝大家了。為啥我每次url圖片的位置 。電腦顯示不出來啊
我用了url給DIV的tu用了.tu{width:60px;height:40px;float:left;background:url(1.jpg);}為什么沒有了,電腦顯示不出來是什么原因啊。。。很急求大神指點。 麻煩了
2018-08-02
background-position:? px? px;
加上這個試試,第一個px是x軸距離,第二個是y軸距離。這個可以控制背景區域,顯示圖片的哪個部分。