【问题标题】:Why the color of text is blue on bootstrap col ? and how to redesign my page with only Bootstrap css [closed]为什么 bootstrap col 上的文本颜色是蓝色的?以及如何仅使用 Bootstrap css 重新设计我的页面 [关闭]
【发布时间】:2020-02-07 17:23:04
【问题描述】:

我从事过应用程序,但我的前端能力不强,所以我想用 Bootstrap 设计一个类似磁贴的菜单页面,但结果并不像预期的那样。
谁能告诉我如何或在哪里找到教程来设计一个简单的css。

【问题讨论】:

    标签: twitter-bootstrap thymeleaf web-frontend


    【解决方案1】:

    回答:

    为什么 bootstrap col 上的文本颜色是蓝色的?

    锚标记的默认颜色。您可以将其更改为您想要的任何颜色。

    <style>
     a{ color: hex code | color name | rgb values }
    
     a{ color: red }
    
    </style>
    

    如何仅使用 Bootstrap css 重新设计我的页面?

    请参考以下链接:

    示例: https://getbootstrap.com/docs/4.4/examples/

    引导组件 https://getbootstrap.com/docs/4.4/components/alerts/

    【讨论】:

    • 谢谢你,我用你的代码重新着色了标签文本,但我保留了 div,我只是改变了字体+背景颜色。我用这些链接解决了我的问题再次感谢您
    【解决方案2】:

    这是结果,我按照之前选择的顺序只选择了两种颜色,并将字体更改为 Century Gothic。
    我还在背景中添加了一张图片。

    【讨论】:

    • 在 div 中添加一些填充。填充:5px;或 8 像素;将字体大小减小到:字体大小:12px;或 11 像素;会更好看。
    猜你喜欢
    • 1970-01-01
    • 2016-03-10
    • 1970-01-01
    • 1970-01-01
    • 2016-06-06
    • 2015-10-24
    • 1970-01-01
    • 2017-01-20
    • 2018-11-19
    相关资源
    最近更新 更多