This article mainly introduces how to use HTML5 to implement message and reply styles. Friends who need it can refer to it
I won’t explain it in detail, just go to the code:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="author" content="http://www.webkfa.com/" /> <title>web开发-webkfa.com</title> <style type="text/css"> *{ margin:0;padding:0; -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */ -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */ -webkit-tap-highlight-color: rgba(210,210,210,0.35); /* make transparent link selection, adjust last value opacity 0 to 1.0 */ -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */ } body{font-family:"微软雅黑";font-size:12px;} ul,li{list-style:none;} .ylcon{width:100%;min-width:320px;} .tit{height:26px;line-height:26px;padding:0px 15px;position:relative;font-size:15px;color:#aaa;border-bottom:1px solid rgba(0, 0, 0, 0.15);} .story{border-bottom:1px dashed #cecece;padding:0 15px 3px;position:relative;} .story_t{font-size:1.2em;color:rgba(0,0,0,1);padding-top:5px;padding-bottom:2px;} .story_m{color:rgba(110,110,110,1);line-height:21px;word-break:break-all;word-wrap:break-word;overflow:hidden;font-size:1.2em;padding:2px 0;} .story_time{color:rgba(154,154,154,1);padding:2px 0;} .story_hf{background:rgb(245,245,245);font-size:1.2em;border:1px solid rgba(204,204,204,0.2);border-radius:2px;color:rgba(110,110,110,1);padding:4px;margin-bottom:5px;} .opbtn{position:absolute;top: 0;right: 0;} </style> </head> <body> <p class="ylcon"> <p class="tit"> 所有留言 </p> <p id="messpId"> <p class="story"> <p class="opbtn"></p> <p class="story_t">怜星</p> <p class="story_time">2015/07/12 20:48</p> <p class="story_m">我想问最近最火的tfboys呢他们的八卦呢我想问最近最火的tfboys呢,他们的八卦呢我想问最近最火的tfboys呢?!他们的八卦呢?!</p> <p class="story_hf">@剑花烟雨:的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契</p> </p> <p class="story"> <p class="opbtn"></p> <p class="story_t">怜星</p> <p class="story_time">2015/07/12 20:48</p> <p class="story_m">我想问最近最火的tfboys呢他们的八卦呢我想问最近最火的tfboys呢,他们的八卦呢我想问最近最火的tfboys呢?!他们的八卦呢?!</p> <p class="story_hf">@剑花烟雨:的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契</p> </p> <p class="story"> <p class="opbtn"></p> <p class="story_t">怜星</p> <p class="story_time">2015/07/12 20:48</p> <p class="story_m">我想问最近最火的tfboys呢他们的八卦呢我想问最近最火的tfboys呢,他们的八卦呢我想问最近最火的tfboys呢?!他们的八卦呢?!</p> <p class="story_hf">@剑花烟雨:的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契的是相对无言眼波如流的默契</p> </p> </p> </p> </body> </html>
The above is the entire content of this article. I hope it will be helpful to everyone’s study. For more related content, please pay attention to the PHP Chinese website!
Related recommendations:
Implementation of HTML5 sound recording and playback functions
Method of using HTML5 Canvas to draw shadow effects
The above is the detailed content of HTML5 implements page styles for messages and replies. For more information, please follow other related articles on the PHP Chinese website!