How can I enlarge the background icon?
何惜一博
何惜一博 2018-09-21 16:12:16
0
2
1181

1537515817(1).jpg

For example, in the background picture of this chapter, there are many icons in the picture. I only want the first icon. How can I make an icon larger? The width and height of this icon are only 30px*30px. I have css Write like this: background: url (../images/xxx.png); background-position: 0px -30px; padding: 40px; width: 40px height: 40px;. But the icon is still only as big as it was originally and will not change as the width and height change

Please help me!

何惜一博
何惜一博

reply all (1)
MO_ON

A property background-size

in css3
  • reply I've used this too, but it didn't work. It will only work if the background image has only one icon. It seems that it cannot be used with background-position.
    何惜一博 author 2018-09-23 10:51:23
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!