A small prompt box written by CSS

Source: Internet
Author: User

<! Doctype HTML> <br/> <pead> <br/> <meta charset = "GBK"> <br/> <title> popup tips demo </title> <br/> <style> <br/> body, button, input, select, textarea {<br/> Font: 12px/1.5 verdana, tahoma, Arial,/5b8b/4f53; /* followed by the Code */<br/>}< br/> # popup-Tips {<br/> position: absolute; <br/> background-color: # cccccc; <br/>}< br/> # tips-cont {<br/> border-top: 1px solid # cccccccc; <br/> border-bottom: 1px solid # cccccc; <br /> Position: relative; <br/> left:-3px; <br/> top:-3px; <br/> _ margin-left: 1px; /* for IE 6 bug */<br/> background-color: # efefef; <br/>}< br/> # tips-cont Div {<br/> border-left: 1px solid # cccccc; <br/> border-right: 1px solid # cccccc; <br/> padding: 5px; <br/> margin: 0px-1px; <br/>}< br/> </style> <br/> </pead> <br/> <body> <br/> <Div id = "popup-Tips "> <br/> <Div id =" tips-cont "> <div> Please negotiate with the seller to cancel the order, <br/> do not cancel every day More than 5 orders. </Div> <br/> </body> <br/> </ptml>

Show off what you did, but there is no hack version here, because the compiler does not support it. :

Please negotiate with the seller to cancel the order,

No more than 5 orders can be canceled every day.

O (∩) O Haha ~ Today, I suddenly think of the previous article about positon: relative and position: abosolute positioning, and I thought it could actually be used. Just try it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.