首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么这个.d-none .d-sm-block不起作用?

为什么这个.d-none .d-sm-block不起作用?
EN

Stack Overflow用户
提问于 2020-06-26 17:52:36
回答 1查看 79关注 0票数 0

我需要做的是让下面的段落在显示在额外的小屏幕上时消失。

代码语言:javascript
复制
<div class="col-sm-12">
        <div>
            <h2>Corporate Leadership</h2>
            <h3>Peter Pan <small>Chief Epicurious Officer</small></h3>

            
            <p class="d-none d-sm-block" >Our CEO, Peter, credits his hardworking East Asian immigrant parents who undertook the arduous journey to the shores of America with the intention of giving their children the best future. His mother's wizardy in the kitchen whipping up the tastiest dishes with whatever is available inexpensively at the supermarket, was his first inspiration to create the fusion cuisines for which <em>The Frying Pan</em> became well known. He brings his zeal for fusion cuisines to this restaurant, pioneering cross-cultural culinary connections.</p>
EN

回答 1

Stack Overflow用户

发布于 2020-10-08 16:30:43

你的答案是here

请先搜索再提问。尝试将<p>放在<div class="col-*">中,并更改<p>类,如下所示。

代码语言:javascript
复制
<div class="col-12">
   <p class="d-sm-none d-md-block" >
       your Text
   </p>
</div>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62592235

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档