Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions 2017-每天都被自己帥醒-way.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!---黃子威--->
<!DOCTYPE html>
<html lang="utf-8">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, in itial-scale=1">
<title>Hellojs-bootstrap</title>
<!-- Bootstrap CSS -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
</head>
<style>
html {
height: 100%;
}
body {
background-image: url("http://www.wallpapermade.com/images/wallpapers/originals/nice-tree-with-colorful-star-sky-wallpaper-2056.jpg");
background-repeat: no-repeat;
background-size: cover;
padding: 5% 0px;
}
.main {
background: linear-gradient(rgba(255, 255, 255, 0.8)65%, rgba(255, 255, 255, 0)100%);
background: -moz-linear-gradient(rgba(255, 255, 255, 0.8)65%, rgba(255, 255, 255, 0)100%);
background: -webkit-linear-gradient(rgba(255, 255, 255, 0.8)65%, rgba(255, 255, 255, 0)100%);
background: -o-linear-gradient(rgba(255, 255, 255, 0.8)65%, rgba(255, 255, 255, 0)100%);
height: 100%;
border-radius: 16px;
}
.image {
padding-top: 20px;
}
.mydata {
text-shadow:0px 0px 10px #000;
}
</style>
<body class="row img-responsive" style=" height: 100%;">
Copy link

Choose a reason for hiding this comment

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

要使用<div class="row"></div>必須先在元素最外層包<div class="container"></div>或是<div class="container-fluid"></div>,才不會造成元素凸出視窗範圍;另外,img-responsive一般是用在圖片噢

Copy link

Choose a reason for hiding this comment

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

所以建議是改成

<body class="container" style="height:100%;">
    <div class="row">
        ...
    </div>
</body>

<div class="main col-lg-4 col-md-4 col-sm-8 col-lg-offset-4 col-md-offset-4 col-sm-offset-2 col-xs-12 row">
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="row image">
<img src="https://rr.img.naver.jp/mig?src=http%3A%2F%2Fimgcc.naver.jp%2Fkaze%2Fmission%2FUSER%2F6%2F6173%2F117%2F6bd8407bf6d5ceee8602e3fad4c3511f.jpg&twidth=1000&theight=0&qlt=80&res_format=jpg&op=r" class="img-circle img-responsive col-lg-6 col-md-6 col-sm-12 col-lg-offset-3 col-md-offset-3 col-xs-12">
</div>
<div class="col-lg-8 col-md-8 col-sm-8 col-lg-offset-2 col-md-offset-2 col-sm-offset-2 col-xs-10 col-xs-offset-1 mydata">
Copy link

Choose a reason for hiding this comment

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

這裡也記得要再把網格包在row類別裡歐

<p class="h2 text-center"><strong>黃子威</strong></p>
<span class= "h3">中正大學資訊工程系的學生,主要涉略網頁後端程式語言,希望可以在Hellojs學到前端開發技術。</span>
</div>
</div>
</body>
</html>
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>