杩欐槸瀵硅瘽鍐呭
鍩轰簬CSS3绾挎€ф笎鍙樹笁瑙掑浘褰㈢敓鎴愬疄渚嬮〉闈?/h1>
鍥炲埌鐩稿叧鏂囩珷 »
鏁堟灉锛?/h3>
浠g爜锛?/h3>
CSS浠g爜锛?/h5>
.avatar {
width: 54px; height: 54px;
border-radius: 50%;
object-fit: cover;
float: left;
}
.content {
margin-left: 70px;
}
.talk {
display: inline-block;
max-width: 80%;
border: 1px solid #ddd;
border-radius: 3px;
padding: 6px 10px;
font-size: 14px;
background-color: #fff;
position: relative;
}
.talk::before {
content: '';
position: absolute;
width: 6px; height: 6px;
background: linear-gradient(to top, #ddd, #ddd) no-repeat, linear-gradient(to right, #ddd, #ddd) no-repeat, linear-gradient(135deg, #fff, #fff 6px, hsla(0,0%,100%,0) 6px) no-repeat;
background-size: 6px 1px, 1px 6px, 6px 6px;
transform: rotate(-45deg);
left: -4px; top: 13px;
}
HTML浠g爜锛?/h5>
<img src="mm1.jpg" class="avatar">
<div class="content">
<p class="talk">杩欐槸瀵硅瘽鍐呭</p>
</div>
鏁堟灉锛?/h3>

浠g爜锛?/h3>
CSS浠g爜锛?/h5>
.avatar {
width: 54px; height: 54px;
border-radius: 50%;
object-fit: cover;
float: left;
}
.content {
margin-left: 70px;
}
.talk {
display: inline-block;
max-width: 80%;
border: 1px solid #ddd;
border-radius: 3px;
padding: 6px 10px;
font-size: 14px;
background-color: #fff;
position: relative;
}
.talk::before {
content: '';
position: absolute;
width: 6px; height: 6px;
background: linear-gradient(to top, #ddd, #ddd) no-repeat, linear-gradient(to right, #ddd, #ddd) no-repeat, linear-gradient(135deg, #fff, #fff 6px, hsla(0,0%,100%,0) 6px) no-repeat;
background-size: 6px 1px, 1px 6px, 6px 6px;
transform: rotate(-45deg);
left: -4px; top: 13px;
}
HTML浠g爜锛?/h5>
<img src="mm1.jpg" class="avatar">
<div class="content">
<p class="talk">杩欐槸瀵硅瘽鍐呭</p>
</div>
CSS浠g爜锛?/h5>
.avatar {
width: 54px; height: 54px;
border-radius: 50%;
object-fit: cover;
float: left;
}
.content {
margin-left: 70px;
}
.talk {
display: inline-block;
max-width: 80%;
border: 1px solid #ddd;
border-radius: 3px;
padding: 6px 10px;
font-size: 14px;
background-color: #fff;
position: relative;
}
.talk::before {
content: '';
position: absolute;
width: 6px; height: 6px;
background: linear-gradient(to top, #ddd, #ddd) no-repeat, linear-gradient(to right, #ddd, #ddd) no-repeat, linear-gradient(135deg, #fff, #fff 6px, hsla(0,0%,100%,0) 6px) no-repeat;
background-size: 6px 1px, 1px 6px, 6px 6px;
transform: rotate(-45deg);
left: -4px; top: 13px;
}
HTML浠g爜锛?/h5>
<img src="mm1.jpg" class="avatar">
<div class="content">
<p class="talk">杩欐槸瀵硅瘽鍐呭</p>
</div>
<img src="mm1.jpg" class="avatar"> <div class="content"> <p class="talk">杩欐槸瀵硅瘽鍐呭</p> </div>