Skip to content

Conversation

@yuxuan39
Copy link

/2017-hellojs_overflow-kaya 資料夾底下的 2017-hellojs_overflow-kaya.html 即為我的最終作業內容。

<link href="static/css/index.53b2a3d2.bundle.css" rel="stylesheet"></head>

<body>
<aside class="row col-md-3 col-sm-3 bg-info col-md-offset-1 panel panel-primary">
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

若有在頁面中使用row類別,建議在最外層使用<div class="container"></div>或是<div class="container-fluid"></div>將所有元素包進去,因為bootstrap有定義了row的樣式,左右都是margin:-15px,這樣會造成有包了row類別的元素會超出視窗,跑出卷軸,由於container或是container-fluid類別有定義左右padding:15px,這時候如果使用他們包裝,就可以解決凸出視窗的問題了

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外也不建議將row、col、panel類別全部放在同一層,不同的class在bootstrap有不同的樣式設定,放在一起可能會造成一些樣式上的衝突,可能會無法達到預期的樣子

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants