Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
小提琴。我正在为我的网站制作一个投票按钮,并且我有一个指向该按钮的箭头形字符。我在div里有一张图片,我把图片放进去之后,div里面的文字和图片就被往下推了。我希望文本和图像位于 div 内。
HTML:
<button id="b"> 0 </button><div id='votes'>← Votes <img id='votel' src='http://i.imgur.com/lVbnNwy.png?1' /></div>
删除margin-top:
margin-top
#votel { height: 18px; width: 18px; }