博客
关于我
强烈建议你试试无所不能的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

    你可能感兴趣的文章
    ucos ii 46个系统API函数解析
    查看>>
    STM8S AWU与WWD配合
    查看>>
    Oracle或PL/SQL自动断开连接解决参考
    查看>>
    设计模式目录
    查看>>
    Qt入门(14)——父窗口部件和子窗口部件
    查看>>
    SSH(spring+struts2+hibernate)XML式配置
    查看>>
    基于Callable和Future的匹配文件数量计算实例
    查看>>
    SQL SERVER拓展存储过程
    查看>>
    函数式接口(Functional Interface)
    查看>>
    HTML 5--新增的其他属性
    查看>>
    JAVA面对对象(四)——抽象类
    查看>>
    CTF资源
    查看>>
    阿里云 yum 源
    查看>>
    Fraction to Recurring Decimal
    查看>>
    常用js正则表达式大全
    查看>>
    js数组的各种方法
    查看>>
    win10高清屏部分软件显示模糊解决方法
    查看>>
    MySQL常用基础函数
    查看>>
    2012NOIP模拟试题
    查看>>
    [lintcode] Binary Tree Preorder Traversal
    查看>>