0
我試圖在電子郵件中設置一些鏈接,並且無法正確顯示它們。在手機中控制內嵌塊元素大小在Gmail中
<p style="display: block; text-align: center;font-size: 20px;line-height:40px;width: 85%; margin: 0 auto;font-weight:300;margin-top:20px;">
<a style="width: 45%; display: inline-block; background-color: #ebebeb; color: #333; text-decoration: none; margin: 0 10px; border-top:0; border-right: 1px; border-bottom: 1px; border-left: 0; border-color: #b8b8b8; border-style:solid;" href="http://example.com"">Link One</a>
<a style="width: 45%; display: inline-block; background-color: #ebebeb; color: #333; text-decoration: none; margin: 10px; border-top:0; border-right: 1px; border-bottom: 1px; border-left: 0; border-color: #b8b8b8; border-style:solid;" href="http://example.com" >Link Two</a>
</p>
它們在桌面上(並排)顯示正常。在移動設備上,我希望他們能夠堆疊起來,但正如預期的那樣,他們只佔用45%的屏幕太小。
由於Gmail無法可靠地使用媒體查詢,是否有任何方法使它們堆疊並在移動設備上以合理寬度顯示?
謝謝