當我減少我的browser window size
,HTML element
將會消失時,我正面臨一個問題。但我想要的是使元素可見和垂直顯示。我已經搜索了很多,但沒有得到正確的解決我的問題的答案。這是我的代碼。在重新調整瀏覽器大小時設置HTML元素
<div style="border: 1px solid lightgrey; border-radius: 10px 10px 10px 10px; width: 800px">
<table width= "75%" style="margin-left:1%">
<tr>
<td width="30%">
@Html.Captcha("Refresh", "Enter Captcha", 5, "Is required field.", true)<div style="color: Red;">@TempData["ErrorMessage"]</div>
</td>
<td width="70%" >
<div id="qrcode" style="display: none">
<img src="@Url.Action("QrCode", "Qr", new { url = Model.ShortUrl })" onclick="AppendURL('@this.Model.ShortUrl')"/>
</div>
</td>
</tr>
</table>
</div>
當我減少大小,QR code Image
開始提前消失的大小decreasing.Thanks。
你可以發佈html輸出嗎? – ostapische
@ostapische是的..我昨天發佈了與圖片相同的問題,但沒有人回答我。以下是它的鏈接。請幫助。 (http://stackoverflow.com/questions/17780797/set-contents-of-page-according-to-browser-resolution) – EHS
啊,你現在有一個答案。然後我們可以把它作爲一個副本來關閉。 –