CSS 图文混排,图片居右
.post-entry img[alt$=">"] {
float: right;
margin: 0.7rem; /* this margin is totally up to you */
box-shadow: 0 0 10px #555;
border-radius: 6px;
-webkit-box-shadow: 0 0 0px #ece7e7;
-moz-box-shadow: 0 0 0px #ece7e7;
max-width: 45%;
}
CSS 图文混排,图片居左
.post-entry img[alt$="<"] {
float: left;
margin: 0.7rem; /* this margin is totally up to you */
box-shadow: 0 0 10px #555;
border-radius: 6px;
-webkit-box-shadow: 0 0 0px #ece7e7;
-moz-box-shadow: 0 0 0px #ece7e7;
max-width: 45%;
}
CSS 图文混排,图片居中
.post-entry img[alt$="><"] {
display: block;
float: none!important;
margin: 0.7rem auto; /* you can replace the vertical '0.7rem' by
whatever floats your boat, but keep the
horizontal 'auto' for this to work */
box-shadow: 0 0 10px #555;
border-radius: 6px;
-webkit-box-shadow: 0 0 0px #ece7e7;
-moz-box-shadow: 0 0 0px #ece7e7;
max-width: 75%;
vertical-align: middle;
/* whatever else styles you fancy here */
}
Markdown 写法
#基本格式
![alt >](url "title")
![alt <](url "title")
![alt ><](url "title")
#范例
![品美社 LOGO <](https://pinmei123.com/imgs/logo.png ")
网友评论