本文介绍了将文本定位在居中图像上的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在尝试制作一个800px宽的页面。也就是说,我有一张 800px图像。我希望页面的内容居中。我能做到这一点 罚款。在顶部,我想要一个带有文本菜单的图像徽标放在顶部。 现在我在Mozilla中工作得很好,在IE中也很糟糕。 该页面验证CSS和HTML都很好。这应该很简单,但不知怎的,我只是没有定位。 这是该页面的链接: http://www.nyccure.com/test/ptest.html 任何建议,假设它们在解剖学上是可能的, 赞赏。 TIA。 - Matt Silberstein 今天就达尔富尔种族灭绝事件做点什么 种族灭绝是新闻|做证人 http://www.beawitness.org 达尔富尔:种族灭绝我们可以停止 www。 darfurgenocide.org Save Darfur.org ::苏丹达尔富尔地区的暴力和苦难 http://www.savedarfur.org/ 解决方案 < http:// allmyfaqs。 com / faq.pl?AnySizeDesign> < http://allmyfaqs.com/faq .pl?AnySizeDesign> 不是我的问题,但很好。那么我该如何处理图像标识? 让我重新解释一下这部分问题。我想显示徽标, 图像,我希望它居中,我想在图像右侧的 右侧覆盖文本菜单。 - Matt Silberstein 今天就达尔富尔种族灭绝事件做点什么 种族灭绝是新闻|做证人 http://www.beawitness.org 达尔富尔:种族灭绝我们可以停止 www。 darfurgenocide.org Save Darfur.org ::苏丹达尔富尔地区的暴力和苦难 http://www.savedarfur.org/ 这也是我的反应...... 不是我的问题,但很好。那么我该如何处理图片 logo? 不要宽800px。 如果你有一个必须存在的图像本身,让我们说 2,000px宽,那么我不会和你争论anysizedesign。对于 例如,如果您正在开设放射线摄影课程,那么这些图像只需要包含足够的细节来确定其临床要点。那些没有碰巧显示宽度为2,000px的b $必须尽可能地滚动为。这就是问题领域的现实。所以说: 它是证明规则的例外。 *但是*对于一个公共或花园网页,不同考虑适用, 如果你坚持在我的 选择的浏览器窗口中显示你的公司徽标800px(可能大约650px宽,或者我的 最后选择了它,然后你不太可能吸引这个 特定客户。 你真的没有太明确了(草稿的网址可能有 有助于更准确地了解您的要求),但ISTM 如果您定义了可能会造成更少的伤害您的徽标作为CSS 背景,而不是试图将其作为HTML内容进行限制。 祝你好运 I am trying to make a page that will be 800px wide. That is, I have an800px image. I want the content of the page centered. I can do thatfine. On the top, I want an image logo with a text menu placed on top.Right now I have that working just fine in Mozilla and horrible in IE.The page validates just fine for both CSS and HTML. This should beeasy, but somehow I just don''t get positioning.Here is the link to the page: http://www.nyccure.com/test/ptest.htmlAny suggestions, assuming they are anatomically possible, areappreciated.TIA.--Matt SilbersteinDo something today about the Darfur GenocideGenocide is news | Be A Witness http://www.beawitness.org"Darfur: A Genocide We can Stop" www.darfurgenocide.orgSave Darfur.org :: Violence and Suffering in Sudan''s Darfur Region http://www.savedarfur.org/ 解决方案<http://allmyfaqs.com/faq.pl?AnySizeDesign><http://allmyfaqs.com/faq.pl?AnySizeDesign>Not the question I had, but fine. So how do I deal with an image logo?Let me rephrase that part of the issue. I want to display the logo, animage, I want it centered, and I want to overlay a text menu on theright side of the image.--Matt SilbersteinDo something today about the Darfur GenocideGenocide is news | Be A Witness http://www.beawitness.org"Darfur: A Genocide We can Stop" www.darfurgenocide.orgSave Darfur.org :: Violence and Suffering in Sudan''s Darfur Region http://www.savedarfur.org/Which was pretty much my reaction too... Not the question I had, but fine. So how do I deal with an image logo?Don''t make it 800px wide.If you have an image that has to be, in and of itself, let''s say2,000px wide, then I won''t argue with you about anysizedesign. Forexample if you''re giving a course on radiography, the images simply/have/ to contain enough detail to make their clinical point. Thosewho don''t happen to have a display 2,000px wide will have to scroll asbest they can. That''s the reality of the problem domain. So to say:"it''s the exception that proves the rule".*But* for a common or garden web page, different considerations apply,and if you insist on displaying your company logo at 800px in mychosen browser window (which might be about 650px wide, or whatever Ilast chose it to be), then you''re unlikely to appeal to thisparticular customer.You haven''t really been too definite (the URL of a draft might havehelped to get a more concrete idea of your requirement), but ISTM thatyou might cause less harm if you defined your logo as a CSSbackground, rather than trying to cramp it in as HTML content.good luck 这篇关于将文本定位在居中图像上的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!