Set an image for a list item tag using a cross-browser solution

Example analysis:

ul:

● Set the list style type to no delete list Item tag

##● Set padding and margin to 0px (browser compatibility)

all li in ul:

● Set the URL of the image and set it to be displayed only once (no duplication)

● Set the position of the image you need (0px left and 5px top and bottom)

●Use the padding-left attribute to place text in the list


Continuing Learning
||
php中文网(php.cn)
  • PHP
  • JavaScript
  • MySQl
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!