internet-explorer-5

IE5 max-width support & posible solution

有些话、适合烂在心里 提交于 2019-12-12 03:11:51
问题 I simply wanna set a max and a min width to my content in my IE5 compatible site i read out of this site that the solution below could solve it, in this following example i only show max width. But there must be some issue cause it don't work can somebody tell me what is wrong? or another solution - it can have a javascript solution - but i need to be IE5 supported? * html .wrapper { width: expression( document.body.clientWidth > 960 ? "961px" : "auto" ); /* sets max-width for IE */ } html

jquery position() in plain javascript

谁说我不能喝 提交于 2019-12-10 14:17:13
问题 I have the following line of code: var newLeftPos = $('span#s' + i).position().left - parseInt($('span#s' + i).css('width'), 10); It works great in ie6 and upwards but I also need to get it to work for ie5.5. (Let's not argue about that now - I know - but I have no option) I'm certain it falls on the .position() while I'm testing on ie5.5 with jquery 1.2 How could I do the same in plain javascript? Could "offsetParent" help me here? Apparently ie5.5 supports that. Thanks in advance. 回答1: You

Why showing error message while opening .xls file

放肆的年华 提交于 2019-11-29 08:41:10
问题 In my asp.net, C# application we are generating and downloading .xls file. But when I'm trying to open, it's giving a message "The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?" If I press 'Yes' it's opening. I changed the file extension to .xlsx, still same message. Can anyone tell me why this is happening?