简体   繁体   English

如何在(现有)html 页面上添加消息(备忘录/便签)

[英]how to add a message (memo / sticky note) on (top of existing) html page

How do I achieve this: I have an HTML5 homepage and want to give the visitors a message (eg "dear visitor, I am on vacation from....") in the form of a memo/sticky note eg in the top right corner of the home page.我如何实现这一点:我有一个 HTML5 主页,并希望以备忘录/便签的形式向访问者发送一条消息(例如“亲爱的访问者,我正在度假......”),例如在右上角主页的一角。 Is there a neat and nice solution to have it "just" on top of the existing UI.是否有一个简洁而漂亮的解决方案,让它“只是”在现有 UI 之上。 Other ideas are welcome.欢迎其他想法。 thx谢谢

position:absolute;
top:0;
right:0;
width:200p;
height:200px;

Check out this jsfiddle for a simple example https://jsfiddle.net/traso7o7/查看此 jsfiddle 以获取简单示例https://jsfiddle.net/traso7o7/

position: absolute; is main thing you need to put your message on the top最重要的是你需要把你的信息放在最上面

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM