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

    你可能感兴趣的文章
    电脑常见问题汇总:
    查看>>
    集合接口和类
    查看>>
    20145227《信息安全系统设计基础》期中总结
    查看>>
    20145227《信息安全系统设计基础》第十三周学习总结
    查看>>
    android第七节活动的生命周期
    查看>>
    Android Runnable 运行在那个线程
    查看>>
    find命令不递归查询子目录
    查看>>
    UITableView动态改变Cell高度
    查看>>
    iOS-Core-Animation-Advanced-Techniques
    查看>>
    PHP isset()与empty()的区别详解
    查看>>
    操作系统中的调度问题
    查看>>
    博客> UITableViewCell嵌套UIWebView UITableViewCell嵌套UIWebView
    查看>>
    [转]mysql 导入导出数据库以及函数、存储过程的介绍
    查看>>
    dev中控件属性设置
    查看>>
    检查点
    查看>>
    转:QQ群年终工作总结
    查看>>
    图文详解linux如何搭建lamp服务环境
    查看>>
    Java 7中报错
    查看>>
    获取外网IP
    查看>>
    关于新标签dialog
    查看>>