[英]How can I align text centered vertically and horizontally to the right of an image?
我正在使用jQuery Mobile開發移動網站,並希望在“可折疊”元素中使用圖片。
我的代碼如下:
<div data-role="collapsible" data-collapsed="true">
<h3><img src="images/combo_a_small.jpg" style="width: 40px; height: 40px;" alt="Indian Food" />Combos</h3>
圖像正確顯示,但文本始終粘貼在圖像的右下角。
如何使文本居中對齊,使圖像的右側垂直和水平對齊? 謝謝。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.