1
我很難爲嵌入式instagram照片添加一個簡單的風格。我想將這些照片並排放置,因此我使用了一個無序列表並對其進行了設計,以便它不會出現水平並將其列出。但是,這種風格似乎並不適用於嵌入的Instagram照片。風格嵌入式Instagram照片橫向
的CSS
#instapost ul
{
list-style-type: none;
}
#instapost ul li {
display: inline;
}
<div id="instapost">
<ul>
<li>(copy any post from instagram and make max-width=320)</li>
<li>(copy any post from instagram and make max-width=320)</li>
</ul>
</div>
嵌入的Instagram照片的完整例子可以在這裏看到的HTML: https://jsfiddle.net/edwardgam/0k7smgvk/4/
(其實我使用WordPress和WordPress插件'簡單的Instagram嵌入',所以我只是複製Instagram照片的URL(而不是Instagram提供的嵌入代碼)並粘貼到在我的WordPress的帖子適當的地方。但是,無論我使用插件還是不存在這個問題)。
謝謝。
謝謝瑞恩。這實際上效果很好。但是我沒有提到在此之後還有其他元素,它似乎已經混淆了其他項目的格式。我做的是添加一個新的css '#instapost-clear {clear:left; '} 每個格即 '
相關問題