如何将照片放置在我的网站标题的左上角
这是我的网站。
我想将客户服务主管的照片放在网站标题的左上角,该标题现在是空的。
我该怎么做? 我无法弄清楚为什么放置在 #header 中的图形没有放置在左上角,因为左侧有一些空间。
我想将照片添加为单独的一张。如果我不能,那么我可以将照片与现有的图形标题(包含公司徽标..)合并。
哪个是最好的选择?
This is my site.
I want to place a customer care executive's photo in the top left of the website header which is empty now.
How can I do it?
I'm not able to figure out why the graphic placed in #header isn't placed on the top-left that is there is some space on the left side.
I'd like to add the photo as separate one. If I can't then I can merge the photo along with the existing graphic header(containing company logos..).
Which will be best option?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,公司徽标图像是背景,因此它不会受到您在 div#header 中放入的任何内容的影响。它确实不需要成为背景,但不会伤害任何东西。我会在 Photoshop 中删除渐变并将其保存为具有透明背景的 PNG。这将解决排列渐变的问题。
至于插入图像,您可以这样做 -
HTML -
CSS -
您需要将 XXXpx 替换为至少与要显示的图像宽度相同或更大的尺寸,以便徽标不会显示在该图像下方。
First, the company logos image is a background, so it is not going to be affected by anything you put inside the div#header. It really doesn't need to be a background, but it's not hurting anything that way. I would remove the gradient in Photoshop and save it as a PNG with a transparent background. That will fix the issue with lining up the gradients.
As for inserting the image you can do this -
HTML -
CSS -
You will need to replace XXXpx with a size at least the same width or larger than the image you want to display so that the logos do not show up beneath that image.