VML (English Vector Markup Language - vector markup language) was developed by Microsoft to describe vector graphics. © wikipedia
v \: roundrect { color: #FFF; display: block; background-color: # 000; padding: 20px; height: 100%; / * To round corners in other browsers * / -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; } / * For ie * / v \: roundrect { behavior: url (# default # VML); / background-color: transparent; }
<! - Connect VML -> <xml: namespace ns = "urn: schemas-microsoft-com: vml" prefix = "v" /> <v: roundrect arcsize = ". 04" fillcolor = "# 000"> Hi, I'm a rounded block! </ v: roundrect>
arcsize
is responsible for the radius of rounding, fillcolor
is responsible for the background of the block.View demo
Read the article with all the nuances
Subscribe to Chernev's notes.
Source: https://habr.com/ru/post/37405/
All Articles