css - Wordpress 发布图像(详细信息)默认类

标签 css image wordpress class post

我想为单个帖子中的所有图像设置默认类别,例如。他们有一个红色的边框。我怎么做?类似于 http://net.tutsplus.com

最佳答案

您可以应用包含帖子的 div 的 id 属性等于帖子的 id 并使用

#post-[id] img { border:1px solid red; }

关于css - Wordpress 发布图像(详细信息)默认类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3864857/

相关文章:

javascript - html页面中的div没有完全显示其内容

css完美全屏图片背景

wordpress - 如何检查帖子是否属于 Wordpress 中的类别

php - 如何使用wordpress wpdb类插入数据

php - 通过ajax更新woocommerce运输方式

html - 如何使图像在跨度按钮内可点击?

css - 在 ScrewTurn Wiki 中使用 CSS

html - CSS 过渡 : Strange unwanted delay in Webkit browsers (Chrome and Safari)

html - Google Chrome 渲染引擎 - 意外边距,将鼠标悬停在图像上后删除

android - 如何将图片存入数据库