博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[Bootstrap] 5. Button and well
阅读量:4573 次
发布时间:2019-06-08

本文共 6519 字,大约阅读时间需要 21 分钟。

Element Identification

There are a number of classes in Bootstrap that help add prominence to a page by adding a background color and a rounded border like the below example.

Styling for this element is due to what Bootstrap class?

  • container

  • well

  • btn

  • lead

 

Choose a Well

Which of the following is NOT a Bootstrap class we could use to style well padding?

  • well

  • well-sm

  • well-md

  • well-lg

 

Button Element

It's a best practice to use a tags for all buttons, including Bootstrap's buttons, because browsers expect them to be clicked.

  • true

  • false

 

Button Color

Bootstrap has some very striking button colors that can be used by adding an additional class to any button. We really want the following button to stand out without conveying contextual information and have it styled appropriately.

The button class used to add color in this case is: btn-primary

 

Check out the following button element. It's a destructive action, and we've given it a class to indicate that clicking on it will perform a potentially negative action. What Bootstrap class is being used to set its color?

The button class used to add this color is: btn-danger

 

Comparing Transport Systems

Like any main sales page, our site needs a good way for travelers to compare the features and prices between the different transport systems. The HTML for this was added, but the Bootstrap classes to make it look nice still need to be included. Follow the tasks to have the Transporter, Space Elevator, and RocketBus sections stand out.

      Blasting Off With Bootstrap    

Blasting Off With Bootstrap

The Fastest Way to Space

Make your way to space in the comfort of your own rocket, elevator or transporter.

Blast off with Bootstrap

Book Today!

Even if you're traveling tomorrow, you can still get tickets today. We have a number of conveniently located ports around the globe to service everyone.

Go Anywhere

If you need to get to space today, why not try out a transporter? Despite the claims, there are have been no deaths in the last 6 weeks!

RocketBus®

For cheapest fares, catch the next RocketBus® to the stars. Cheaper on your wallet, and easiest way to make friends.

Any sufficiently advanced technology is indistinguishable from magic.

Arthur C. Clarke in
Profiles of the Future

Our Transport Systems

Learn more about our transport systems to find out which one is right for you. Pick out the mode of transport that works for your budget and risk level.

Transporter

  • 8 second travel time
  • Chance of death only 1 in 7,593
  • Low price of only $15.99!

Space Elevator

  • 8 hour scenic ride
  • Only 1 horrific death per 12,456
  • Only $45.99 if you book today!

RocketBus

  • 8 minute scenic ride
  • Plunging death rate of under 1/100k
  • $74.99 lets you blast off today!

 

It doesn't make sense to left align our 3 transport systems. Center the text in all cells within that .row.

Transporter

  • 8 second travel time
  • Chance of death only 1 in 7,593
  • Low price of only $15.99!

 

Like the lists in our footer, we don't need bullet icons next to our lists here either. Remove them from each of the lists in the transport systems section.

     

    Each of the three transport systems could stand out a bit more. Add a class to eachdiv that would change the background color and add a rounded border to each. Within this area, include the title (like "Transporter") and the list of items.

    Transporter

    • 8 second travel time
    • Chance of death only 1 in 7,593
    • Low price of only $15.99!

     

    Our unstyled buttons are painful to look at. Add Bootstrap classes to the Transporterbutton to have it use the Bootstrap button styling. Also change the color to be similar to our footer link colors.

    If you need a refresher on Bootstrap colors, checkout the .

    -----------------

     

    Links:

     

    转载于:https://www.cnblogs.com/Answer1215/p/4314772.html

    你可能感兴趣的文章
    真事儿!——我们官网被全站拷贝了!
    查看>>
    抽象类及抽象方法
    查看>>
    Canvas基本绘画学习
    查看>>
    HDU 1050(贪心)
    查看>>
    java设计模式之代理模式
    查看>>
    spring心得2--bean的生命周期@Spring监听器的作用@Spring初始化容器案例分析@web项目使用...
    查看>>
    顺序栈
    查看>>
    Rsync详解
    查看>>
    【每日一读】Java编程中“为了性能”尽量要做到的一些地方
    查看>>
    什么是内网、什么是公网、什么是NAT
    查看>>
    【堆/排序】堆排序的两种建堆方法
    查看>>
    类的内置方法
    查看>>
    项目中使用的第三方开源库
    查看>>
    NOIP2009 潜伏者
    查看>>
    本地预览的vue项目,在githubpage静态展示
    查看>>
    SC命令---安装、开启、配置、关闭 cmd命令行和bat批处理操作windows服务
    查看>>
    iphone 如何清空UIWebView的缓存
    查看>>
    Java——变量
    查看>>
    完整版本的停车场管理系统源代码带服务端+手机android客户端
    查看>>
    【UOJ 92】有向图的强联通分量
    查看>>