html - Internet explorer 11 or IE 8 showing different webpage layout compared to chrome or mozilla -


I am coding a webpage using cshtml which has a link that points to a doc or a PDF file in a window server location. Does. In Windows Explorer, I'm able to open the file by clicking on the link. But in Chrome or Mozilla, I am not able to open the file. After searching in SO, I was told that for security reasons local files can not be opened in Chrome or Firefox.

I was fine with it. But the problem is that the layout of the page is not appearing properly in Internet Explorer 11 or 8 .

Enter image details here

Here's my code:

  @ {var dataFile = Server.MapPath ( "~ / App_Data / Issues.txt"); Array userData = File. Readlines (datafile); } & Lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "css \ styles.css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Width of table = "1084" range = "0" & ​​gt; & Lt; TR & gt; & Lt; Td align = "center" & gt; & Lt; H1 & gt; & Lt; Strong & gt; Bug Analysis Helper Tool & lt; / Strong> & Lt; / H1> & Lt; / Td> & Lt; / TR & gt; & Lt; / Table & gt; & Lt; Table class = "abc" width = "1085" height = "464" range = "0" & ​​gt; & Lt; Tr id = abc & gt; & Lt; Td width = "139" valign = top> Shows how to reach an issue & lt; / Td> & Lt; Td width = "936" rowspan = "2" valign = top> & Lt; H2 & gt; The type of issue & lt; / H2 & gt; @forcha (user data in string dataline) {int i = 0; String [] word = data lines. Sample (','); String [] a = new string [2]; Foreign words (string descriptum in words) {a [i] = @dataItem; I ++; } & Lt; A href = "@a [1]" & gt; @ A [0] & lt; / A & gt; & Lt; Br / & gt; } & Lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; & Nbsp; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

CSS:

table.abc {color: #FFFFFF; Font-family: Verdana, Ariel, Helvetica; Font size: 78pt; font-weight: bold; Font style: normal; Font-type: normal; Text indent: 10px; Background color: # 000000; } Body {background color: #FFFFFF; Font-family: Verdana, Ariel, Helvetica; Font size: 9pt; Font weight: normal; Font style: normal; Font-type: normal; Color: # 000000; } {Color: # 000000; Font-family: Verdana, Ariel, Helvetica; Font size: 9pt; Font weight: normal; Font style: normal; Font-type: normal; Text indent: 20px; } H1 {color: # 000099; Font-family: Segoyi UI, Ariel, Times New Roman; Font-size: 26pt; font-weight: bold; Font style: slant; Font-type: normal; Text indent: 10px; } H2 {color: # FF6600; Font-family: Verdana, Ariel, Helvetica; Font size: 20pt; font-weight: bold; Font style: italic; Font-type: normal; Text indent: 10px; } Td {background-color: #FFFFFF; Font-family: Verdana, Ariel, Helvetica; Font size: 9pt; Font weight: normal; Font style: normal; Font-type: normal; Color: # 000000; } Th {background color: #fffff; Font-family: Verdana, Ariel, Helvetica; Font size: 9pt; font-weight: bold; Font style: normal; Font-type: normal; Color: # 000000; }

(attempted in other versions of IE)

< P> Enter the unit for all tag widths as below

  & lt; Width of table = "1084px" border = "0" & ​​gt;  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -