メッセージを送信するかメールを破棄すると、上部に「メッセージは破棄されました。破棄を元に戻す」というメッセージが表示された黄色のボックスが表示されます。まったく同じ Google css スタイルが必要です。例とアドバイスは大歓迎です。ありがとうございました
リンク先は下の画像を参照してください
別の例 (gmail css から直接)
CSS:
.notification-container {
left: 0;
top: 0;
margin: 0;
font-family: arial, sans-serif;
font-weight: bold;
visibility: hidden;
z-index: 8;
position: absolute;
text-align: center;
width: 100%;
height: 100%;
}
.notification-message {
position: relative;
display: inline-block;
visibility: visible;
font-size: 80%;
padding: 6px 10px;
background-color: #f9edbe;
border: 1px solid #f0c36d;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
html:
<div class="notification-container">
<div class="notification-message">
<span>Loading... <a href="damn.com">Click to learn more</a></span>
</div>
</div>
結果:
以下の css を使用します。
.verticalBox {
margin: 0 0;
position: relative;
top: 8px;
z-index: 990;
border-color: #f0c36d;
background-color: #f9edbe;
padding: 0 10px;
border: 1px solid transparent;
border-radius: 2px;
-webkit-border-radius: 2px;
-webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
background: #f9edbe;
border-color: #f9edbe;
color: #222;
padding: 0 7px;
font-size: 80%;
font-weight: bold;
text-align: center;
}
そして、次の HTML を使用します。
<div class="verticalBox">This is testing</div>
これは、Gmail メッセージに似ています。
結果: