html - 如何使用 ap 标签中的类替换 css 中设置的“下划线”
问题描述
我想在<span>
标签下方的<p>
标签中使用类元素来替换父级<p>
标签中设置的下划线。下面是我的代码:
#instru_topp p span:last-child {
text-decoration: underline;
}
<div id="instru_topp">
<h3>The topping</h3>
<p><span class="especial">Mix</span> all the -- <span>Ingredients</span> and pour it on the top cake. After bakin it, you will end up with this:</p>
</div>
解决方案
推荐阅读
- minecraft - 有没有办法查看/访问公共 minecraft 服务器的 latest.log?
- sql-server - 如何创建查询以显示本周 sql 的每个日期的总销售额
- visual-studio - C 编译器 cl.exe 无法编译简单的测试程序
- ansible - 在 Ansible 中使用 json_query 查询包含在字典列表中的字典列表
- python - 为什么从 locals() 检索键值在列表理解中不起作用?
- electron - 错误:“请注意,'style-src-elem' 未明确设置”设置时
- php - 具有不同 MySQL 表的可重用 PHP 文件
- c - 在linux中保存和清除终端窗口
- angular - 需要在 Angular 中使用具有唯一值的相同组件超过 2 次
- javascript - 在 React 中使用 api 请求分离包装器