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

    你可能感兴趣的文章
    Cube Stacking(并差集深度+结点个数)
    查看>>
    AndroidStudio3更改包名失败
    查看>>
    jq 删除数组中的元素
    查看>>
    js URL中文传参乱码
    查看>>
    Leetcode 367. Valid Perfect Square
    查看>>
    UVALive 3635 Pie(二分法)
    查看>>
    win系统查看自己电脑IP
    查看>>
    Backup&recovery备份和还原 mysql
    查看>>
    一道面试题及扩展
    查看>>
    Unity 3D 我来了
    查看>>
    setup elk with docker-compose
    查看>>
    C++ GUI Qt4学习笔记03
    查看>>
    Java基础回顾 —反射机制
    查看>>
    c# 前台js 调用后台代码
    查看>>
    2017-02-20 可编辑div中如何在光标位置添加内容
    查看>>
    $.ajax()方法详解
    查看>>
    jquery操作select(增加,删除,清空)
    查看>>
    Sublimetext3安装Emmet插件步骤
    查看>>
    MySQL配置参数
    查看>>
    全面理解Java内存模型
    查看>>