在中心显示div标签内容 [英] display div tag content in center

查看:73
本文介绍了在中心显示div标签内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码。我想在屏幕中央显示内容。但它显示在屏幕的左侧。怎么做中心对齐?


谢谢和关注,

Vikas

Here is my code. I want to display content in center of screen. But it is displaying in left side of screen. What to do for center alignment?

Thanks and regard,
Vikas

展开 | 选择 | Wrap | 行号

推荐答案

我知道的最简单的方式

Easiest way I know of

展开 | 选择 | Wrap | 行号


以防万一我在你的页面上试过这个,如果你在IE中预览它确实有效.....我听过很多关于IE如何用CSS工作的声音其他浏览器工作正常;-)

Just in case I tried this on your page, and it does work if you preview in IE anyway.....I have heard many rumblings though about how IE works one way with CSS while other browsers work right ;-)

展开 | 选择 | Wrap | 行号


设置行号中的左上角位置。 15喜欢这个

When set the top, left position in line no. 15 like this

展开 | 选择 | Wrap | 行号


这篇关于在中心显示div标签内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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