1
我有一個動態生成ImageButtons在ListView,在的ItemDataBound如果圖像沒有聯繫我需要讓殘疾人,我曾嘗試以下,如何改變殘疾人的ImageButton的光標在ASP.Net
img.Enabled = False
img.DescriptionUrl = "javascript:void(0);"
img.PostBackUrl = "javascript:void(0);"
img.CssClass = "imageButtonClass"
img.Style.Add(HtmlTextWriterStyle.Cursor, "pointer")
CSS:
.imageButtonClass
{
cursor:pointer;
}
這是由所有的瀏覽器禁用了針對性的圖像,但是,光標變爲指針只在IE瀏覽器。不在Firefox和Chrome中! 有什麼建議嗎?
圖像按鈕默認應該有光標:指針。你可以在jsfiddle.net上發佈一些渲染的HTML按鈕來顯示這個問題嗎? –