谷歌浏览器中的对齐问题 [英] alignment problem in google chrome

查看:147
本文介绍了谷歌浏览器中的对齐问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我只想右对齐我的列表项.一切都在IE中运行.
但对齐方式不适用于谷歌浏览器.

Hi,
All i want to right align my list item. everything is working in IE.
but alignment is not working in google chrome.
how can i right align in google chrome?

推荐答案

在列表项中添加内联样式
add inline style in your list item
Style="text-align: right"



谢谢
Ashish



Thanks
Ashish


使用CSS重置:

看来浏览器对这些元素具有不同的默认CSS设置.始终使用CSS重置,不要让浏览器控制您:)

参考:
YUI 2:重置CSS [
Use a CSS reset:

It looks like the browsers have different default CSS settings for those elements. Always use a CSS reset, don''t let browsers control you :)

Refer:
YUI 2: Reset CSS[^]

Good luck.




您可以使用
Google Chrome浏览器的FireBug [ W3School [
Hi,

You can use FireBug for Google Chrome[^] to modify and debug your CSS and check if any style missing. if you do not know about CSS then you can refer W3School[^].

Hope this will help you,

Thanks
-Amit Gajjar


这篇关于谷歌浏览器中的对齐问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆