先上一个Demo <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text
http://stackoverflow.com/questions/7273338/how-to-vertically-align-an-image-inside-div How it works: When you have two inline-block elements near each other, you can align each to other's side, so with vertical-align: middle you'll get something like