我可以在选取框标签内垂直对齐图像吗
Can I vertically align images within a marquee tag
我想垂直对齐选取框标记内的图像(并且仅图像 - 而不是整个选取框)。有可能实现吗?
<Marquee Behavior="scroll" Scrolldelay="100">
<b>Amsterdam, Pays-Bas</b>: 26°C <img src="assets/meteo_icons/10d.png"> • <b>Bangkok, Thaïlande</b>: 31°C <img src="assets/meteo_icons/02d.png"> • <b>Beijing, Chine</b>: 26°C <img src="assets/meteo_icons/10n.png"> • <b>Berlin, Allemagne</b>: 27°C <img src="assets/meteo_icons/09d.png"> • <b>Brussels, Belgique</b>: 26°C <img src="assets/meteo_icons/01d.png"> • <b>Buenos Aires, Argentine</b>: 4°C <img src="assets/meteo_icons/50d.png"> • <b>Copenhagen, Danemark</b>: 24°C <img src="assets/meteo_icons/04d.png"> • <b>Dodoma, Tanzanie</b>: 28°C <img src="assets/meteo_icons/01d.png"> • <b>Ha Noi, Vietnam</b>: 28°C <img src="assets/meteo_icons/10n.png"> • <b>Helsinki, Finlande</b>: 19°C <img src="assets/meteo_icons/04d.png"> • <b>Hong Kong, Hong-Kong</b>: 30°C <img src="assets/meteo_icons/01n.png"> • <b>Jakarta, Indonésie</b>: 27°C <img src="assets/meteo_icons/11n.png"> • <b>Johannesburg, Afrique du Sud</b>: 20°C <img src="assets/meteo_icons/09d.png"> • <b>Kampala, Ouganda</b>: 25°C <img src="assets/meteo_icons/03d.png"> • <b>Kuala Lumpur, Malaisie</b>: 27°C <img src="assets/meteo_icons/11n.png"> • <b>La Paz, Bolivie</b>: 1°C <img src="assets/meteo_icons/01n.png"> • <b>Lima, Pérou</b>: 17°C <img src="assets/meteo_icons/02d.png"> • <b>Lisbon, Portugal</b>: 25°C <img src="assets/meteo_icons/02d.png"> • <b>Los Angeles, Etats-Unis</b>: 20°C <img src="assets/meteo_icons/01n.png"> • <b>Macau, Macao</b>: 30°C <img src="assets/meteo_icons/02n.png"> • <b>Madrid, Espagne</b>: 32°C <img src="assets/meteo_icons/01d.png"> • <b>Manila, Philippines</b>: 24°C <img src="assets/meteo_icons/11n.png"> • <b>Melbourne, Australie</b>: 14°C <img src="assets/meteo_icons/10n.png"> • <b>Mexico City, Mexique</b>: 14°C <img src="assets/meteo_icons/04n.png"> • <b>Miami, Etats-Unis</b>: 27°C <img src="assets/meteo_icons/10d.png"> • <b>Montreal, Canada</b>: 19°C <img src="assets/meteo_icons/03d.png"> • <b>New Delhi, Inde</b>: 38°C <img src="assets/meteo_icons/50d.png"> • <b>New York, Etats-Unis</b>: 21°C <img src="assets/meteo_icons/50d.png"> • <b>Oslo, Norvège</b>: 25°C <img src="assets/meteo_icons/03d.png"> • <b>Paris, France</b>: 24°C <img src="assets/meteo_icons/04d.png"> • <b>Reykjavik, Islande</b>: 13°C <img src="assets/meteo_icons/04d.png"> • <b>Rio de Janeiro, Brésil</b>: 17°C <img src="assets/meteo_icons/04d.png"> • <b>Roma, Italie</b>: 30°C <img src="assets/meteo_icons/01d.png"> • <b>Santiago, Chili</b>: 4°C <img src="assets/meteo_icons/50n.png"> • <b>Seoul, Corée du Sud</b>: 27°C <img src="assets/meteo_icons/50n.png"> • <b>Singapore, Singapour</b>: 29°C <img src="assets/meteo_icons/11n.png"> • <b>Stockholm, Suède</b>: 24°C <img src="assets/meteo_icons/01d.png"> • <b>Sydney, Australie</b>: 14°C <img src="assets/meteo_icons/01n.png"> • <b>Tokyo, Japon</b>: 22°C <img src="assets/meteo_icons/09n.png"> • <b>Vienna, Autriche</b>: 30°C <img src="assets/meteo_icons/03d.png"> • <b>Washington D.C., Etats-Unis</b>: 18°C <img src="assets/meteo_icons/50d.png"> • <b>Wellington, Nouvelle-Zélande</b>: 8°C <img src="assets/meteo_icons/01n.png"> • <b>Windhoek, Namibie</b>: 23°C <img src="assets/meteo_icons/01d.png"> • <b>Zurich, Suisse</b>: 26°C <img src="assets/meteo_icons/03d.png">
</Marquee>
试试这个
Marquee img {
vertical-align:middle
}
我想垂直对齐选取框标记内的图像(并且仅图像 - 而不是整个选取框)。有可能实现吗?
<Marquee Behavior="scroll" Scrolldelay="100">
<b>Amsterdam, Pays-Bas</b>: 26°C <img src="assets/meteo_icons/10d.png"> • <b>Bangkok, Thaïlande</b>: 31°C <img src="assets/meteo_icons/02d.png"> • <b>Beijing, Chine</b>: 26°C <img src="assets/meteo_icons/10n.png"> • <b>Berlin, Allemagne</b>: 27°C <img src="assets/meteo_icons/09d.png"> • <b>Brussels, Belgique</b>: 26°C <img src="assets/meteo_icons/01d.png"> • <b>Buenos Aires, Argentine</b>: 4°C <img src="assets/meteo_icons/50d.png"> • <b>Copenhagen, Danemark</b>: 24°C <img src="assets/meteo_icons/04d.png"> • <b>Dodoma, Tanzanie</b>: 28°C <img src="assets/meteo_icons/01d.png"> • <b>Ha Noi, Vietnam</b>: 28°C <img src="assets/meteo_icons/10n.png"> • <b>Helsinki, Finlande</b>: 19°C <img src="assets/meteo_icons/04d.png"> • <b>Hong Kong, Hong-Kong</b>: 30°C <img src="assets/meteo_icons/01n.png"> • <b>Jakarta, Indonésie</b>: 27°C <img src="assets/meteo_icons/11n.png"> • <b>Johannesburg, Afrique du Sud</b>: 20°C <img src="assets/meteo_icons/09d.png"> • <b>Kampala, Ouganda</b>: 25°C <img src="assets/meteo_icons/03d.png"> • <b>Kuala Lumpur, Malaisie</b>: 27°C <img src="assets/meteo_icons/11n.png"> • <b>La Paz, Bolivie</b>: 1°C <img src="assets/meteo_icons/01n.png"> • <b>Lima, Pérou</b>: 17°C <img src="assets/meteo_icons/02d.png"> • <b>Lisbon, Portugal</b>: 25°C <img src="assets/meteo_icons/02d.png"> • <b>Los Angeles, Etats-Unis</b>: 20°C <img src="assets/meteo_icons/01n.png"> • <b>Macau, Macao</b>: 30°C <img src="assets/meteo_icons/02n.png"> • <b>Madrid, Espagne</b>: 32°C <img src="assets/meteo_icons/01d.png"> • <b>Manila, Philippines</b>: 24°C <img src="assets/meteo_icons/11n.png"> • <b>Melbourne, Australie</b>: 14°C <img src="assets/meteo_icons/10n.png"> • <b>Mexico City, Mexique</b>: 14°C <img src="assets/meteo_icons/04n.png"> • <b>Miami, Etats-Unis</b>: 27°C <img src="assets/meteo_icons/10d.png"> • <b>Montreal, Canada</b>: 19°C <img src="assets/meteo_icons/03d.png"> • <b>New Delhi, Inde</b>: 38°C <img src="assets/meteo_icons/50d.png"> • <b>New York, Etats-Unis</b>: 21°C <img src="assets/meteo_icons/50d.png"> • <b>Oslo, Norvège</b>: 25°C <img src="assets/meteo_icons/03d.png"> • <b>Paris, France</b>: 24°C <img src="assets/meteo_icons/04d.png"> • <b>Reykjavik, Islande</b>: 13°C <img src="assets/meteo_icons/04d.png"> • <b>Rio de Janeiro, Brésil</b>: 17°C <img src="assets/meteo_icons/04d.png"> • <b>Roma, Italie</b>: 30°C <img src="assets/meteo_icons/01d.png"> • <b>Santiago, Chili</b>: 4°C <img src="assets/meteo_icons/50n.png"> • <b>Seoul, Corée du Sud</b>: 27°C <img src="assets/meteo_icons/50n.png"> • <b>Singapore, Singapour</b>: 29°C <img src="assets/meteo_icons/11n.png"> • <b>Stockholm, Suède</b>: 24°C <img src="assets/meteo_icons/01d.png"> • <b>Sydney, Australie</b>: 14°C <img src="assets/meteo_icons/01n.png"> • <b>Tokyo, Japon</b>: 22°C <img src="assets/meteo_icons/09n.png"> • <b>Vienna, Autriche</b>: 30°C <img src="assets/meteo_icons/03d.png"> • <b>Washington D.C., Etats-Unis</b>: 18°C <img src="assets/meteo_icons/50d.png"> • <b>Wellington, Nouvelle-Zélande</b>: 8°C <img src="assets/meteo_icons/01n.png"> • <b>Windhoek, Namibie</b>: 23°C <img src="assets/meteo_icons/01d.png"> • <b>Zurich, Suisse</b>: 26°C <img src="assets/meteo_icons/03d.png">
</Marquee>
试试这个
Marquee img {
vertical-align:middle
}