CSS:
.icon-search { background-image: url("https://dl.dropBoxusercontent.com/u/23295105/search.png"); background-repeat: no-repeat; background-position: center center;}
HTML:
<button > <span >Toggle navigation</span> <span ></span></button>
这是我的小提琴:
http://jsfiddle.net/ox04anfb/
wIDth: 20px; // replace with actual wIDthheight: 20px; // replace with actual heightdisplay: inline-block;总结
以上是内存溢出为你收集整理的html – 如何添加自定义图像背景以跨越引导按钮?全部内容,希望文章能够帮你解决html – 如何添加自定义图像背景以跨越引导按钮?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)