我試着給margin
div
,但是一個div
框轉到下一行。如何解決這個問題?如何給橫向div之間的空間?
https://jsfiddle.net/2h25xbna/
<!doctype html>
<html>
<head>
\t <title>assignment</title>
\t <meta charset="utf-8">
\t <meta name="viewport" content="width=width-device, initial-scale=1" >
\t <link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1>Trending Languages</h1>
<div class="row">
<div class="col-lg-4 col-md-6" ><p id="py">python</p><br><p>The computing industry progresses in two mostly independent cycles: financial and product cycles. There has been a lot of handwringing lately about where we are in the financial cycle. Financial markets get a lot of attention. </p></div>
<div class="col-lg-4 col-md-6 "><p id="js">Javascript</p><br><p>The computing industry progresses in two mostly independent cycles: financial and product cycles. There has been a lot of handwringing lately about where we are in the financial cycle. Financial markets get a lot of attention.</p></div>
<div class="col-lg-4 col-md-12" ><p id="ru">ruby</p><br><p>The computing industry progresses in two mostly independent cycles: financial and product cycles. There has been a lot of handwringing lately about where we are in the financial cycle. Financial markets get a lot of attention. </p></div>
</div>
</body>
</html>
而且當屏幕像素低於768px邊界消失了,爲什麼呢?如何解決這個問題。我還想給框中的最右邊的文本添加邊框。我嘗試使用ID,但它沒有奏效。
#py{
background-color: #ff9999;
float: right;
clear: left;
position: relative;
top: -15px
border-style: solid;
border-color: black;
border: 2px;
}
你能證明你的HTML嗎? – Jay
你還需要添加完整的css代碼 –
你的意思是你想在python和javascript div之間使用空格嗎? – gskema