定位元素突破div
我这里有一个客户-itus 的案例。客户正在抱怨,我的老板要求我在看到的横幅广告上方的“档案”选项卡下方添加一个徽标 ,这将突破我已经建立的结构。距离发布还有两天,我可以选择要么从其他工作中抽出宝贵的时间来重组布局,要么找到一种方法来定位该徽标,而不必与 div 混淆。我了解 HTML 和基本 CSS,所以我想在采取困难的方法之前看看是否可以找到更好的解决方案。感谢您的帮助!当前页面可以在 ctdailydose.com/new 看到
(为了清楚起见,我想做的是添加右侧的大圆形徽标,上面写着“Scolari Engineering”,而无需重写 CSS 并更改标题的整个结构。)
So I have a case of client-itus here. The client is whining and my boss is demanding that I add a logo underneath the Archives tab over the banner ad seen, which would break through the structure I've set up. We're two days from launch and I have a choice of either taking precious time away from other work to restructure the layout, or find a way to position that logo without having to futz with the divs. I understand HTML and basic CSS, so I thought I'd see if I could find a better solution before going about this the hard way. Thank you for all your help! The current page can be seen at ctdailydose.com/new
(Just for clarity, what I want to do is add big circular logo on the right that says "Scolari Engineering" without having to rewrite the CSS and change the header's entire structure.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需在菜单横幅 div 中的 achor 末尾添加图像(徽标),并在 css 中为其添加位置:absolute right:0px top:0px 即可。根据需要调整位置。
Just add your image (logo) at the end of the end of the achor in your menu-banner div and position:absolute right:0px top:0px for it in your css. Adjust the position as needed.