<! DOCTYPE html> <Html> <Head> <Meta charset = "UTF-8"/> <Meta id = "viewport" name = "viewport" content = "target-densitydpi = medium-dpi, initial-scale = 1, minimum-scale = 1, maximum-scale = 1, user-scalable = no "/> <Meta name = "apple-mobile-web-app-capable" content = "yes"/> <Meta name = "apple-mobile-web-app-status-bar-style" content = "black"/> <Title> Demo </title> <Style> Html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, footer, header, section, summary, time, mark {margin: 0; padding: 0 ;} Ul, li {list-style: none ;} Body {width: 320px; font-size: 16px; font-family: helvetica;-webkit-user-select: none;-webkit-text-size-adjust: none ;} . Wrap {padding: 10px ;} . Tri,. tri: after {width: 20px; background: #000 ;} . Tri {position: relative; height: 100px; border-radius: 10px 10px 0 0;-webkit-box-reflect: below-9px ;} . Tri: after {position: absolute; content: ""; height: 200px; border-radius: 10px;-webkit-transform: translate (-9px) rotate (-60deg ); -webkit-transform-origin: top center ;} */</Style> </Head> <Body> <Div class = "wrap"> <Div class = "tri"> </div> </Div> </Body> </Html> |