html - 基本 CSS 帮助 - 删除形状

标签 html css wordpress themes shapes

我试图通过 css 禁用元素标签上方的三 Angular 形。要查看这些,请按链接,(听,看,品味)有虚线和文字。在文本上有一个不居中的小红色三 Angular 形/箭头。我已经为菜单成功完成了,但没有为元素标签。有问题的网站是:tedmartinez.com

.content-title span:before {
display: none;
}

.content-title span:before {

     content: none;

}

span.content-title {
    display:none;
}
span {
    display:none;
}

.content-title span:before {
    content: none;
}
#content-title span:before {
    content: none;
}

上面的代码不适用于在元素/内容标题上禁用它。

/*removing all arrows and triangles from Tripod*/
nav.main-menu > ul > li.selected:before, nav.main-menu > ul > li.active:before {
content: none;
}

nav.main-menu>ul>li:last-child:after{
content: none;
}

.sf-menu > li:hover > ul:before,
.sf-menu > li.sfHover > ul:before {
content: none;
}

nav.main-menu > ul > li:before {
    content: none;
}

.widget h5.widget-title span:before {
    content: none;
}

#reply-title span:before, #comments-title span:before, .related-title span:before {
    content: none;
}
/*tripod menu arrows while active*/
    nav.main-menu > ul > li.selected:before, nav.main-menu > ul > li.active:before {
            content: none;}

/*tripod menu arrows while hover*/
    nav.main-menu > ul.sf-menu li:hover:before, nav.main-menu > ul.sf-menu li.sfHover:before{
            content: none;}

这有助于在菜单上禁用它。

那是行不通的。当我编辑 HTML 时,就在我的浏览器中的检查元素下,如果我删除 span 标签,它就会工作。另外,我想将元素标签的文本居中。去品味页面看看。我希望味道在一条线上,然后在另一条线上,同时保持中心。我该怎么做?非常感谢!

最佳答案

试试这个

.content-title span:before{
  border-left: none;
  border-right: none;
}

要回答您的第二个问题,请将宽度设置为 50% 以防止您的文本换行

 .content-title span {
  padding: 10px 15px 0 15px;
  position: relative;
  display: inline-block;
  z-index: 2;
  border-radius: 10px;
  width: 50%;
}

关于html - 基本 CSS 帮助 - 删除形状,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31124774/

相关文章:

html - 如何在 HTML 电子邮件 css 中对齐表格

javascript - Wordpress:Javascript 'loaded' 但无法处理控制台错误

css - 将自定义 CSS 添加到我的 Polylang 小部件并删除元素符号 - 使用 WordPress

css - 不在容器中时,Bootstrap 4 警报具有不需要的底部填充

javascript - 透明图像上的 CSS 过渡

php - 如何制作带有小图像的下拉菜单?

jquery - DataTables 一页中多个表的多种样式

javascript - HTML、XHTML 和 CSS……有哪些好的资源?

wordpress - 将 React WordPress 主题中的表单与自定义联系表单和 WP REST API 集成

html - 如何正确使用 CSS Class 和 ID