简体   繁体   中英

Why does Internet Explorer show this site centered versus Firefox or Chrome?

I have built a website and when my users load up

http://info.salemgolfclub.org/Account/Logon

the username and password user entry controls show left justified in the panel in Firefox and Chrome but Internet Explorer shows them centered in the panel .

I want Internet Explorer to show left justified as well. How do I determine what Firefox and Chrome seem to figure out but Internet Explorer struggles with so every browser is consistent?

I would appreciate comments both on this particular example as well as general comments on best practices to avoid this type of situation in the future.

Maybe IE's default style centers a label. Just set text-align: left in your CSS.

将text-align设置为left。

<fieldset style="text-align:left;">

...从设置text-align:left开始...你可能需要浮动:留下一些元素

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM