为什么即使我选择“居中",物品也不能放在居中?对齐? [英] why items dont fit in center even if i choose "center" aligned ?

查看:97
本文介绍了为什么即使我选择“居中",物品也不能放在居中?对齐?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在设计时总是遇到这个问题.在这种形式下,我放置了一个Panel控件.©İ为此控件添加了组文本.我很累像照片上的设计模式一样,将其放置在页面的中央)

但是当我调试时,控件显示在左侧站点.

我们的建议是什么.

谢谢

结果: http://img424.yukle.tc/images/9428result.png [ http://img424.yukle.tc/images/6368design.png [

Hi guys

I always this problem while making design.In this form i put a Panel control.AND İ added group text for this control.And i tired to fit it onto the center of the page like design mode on the photo )

but when i debug , the control shown on the left site.

what are ur sugggestions.

thanks

Result : http://img424.yukle.tc/images/9428result.png[^]

Design wiew : http://img424.yukle.tc/images/6368design.png[^]


thanks

推荐答案

考虑问清楚被正确标记的问题.考虑不要使用设计器,因为它是垃圾.然后获得一本关于CSS的书并阅读它,并学习如何正确构建以所需方式定位的HTML.您还应该查看HTML(比您发布的内容重要得多),很有可能它位于其父对象的中心,并且您需要将其放大,以便覆盖整个屏幕和中心标签都可以满足您的预期.
Consider asking clear questions that are tagged properly. Consider NEVER using the designer, as it is rubbish. Then get a book on CSS and read it and learn how to properly build HTML that positions itself the way you want. You should also look at the HTML ( which matters a lot more than what you posted ), odds are that it''s centred within it''s parent and it''s the parent you need to make bigger, so that it covers the whole screen and your centre tag can do what you intend.


这篇关于为什么即使我选择“居中",物品也不能放在居中?对齐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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