国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁技術(shù)文章
文章詳情頁

css3 - div中的div無法控制高度?我想控制右邊幾個藍色div的高度

瀏覽:96日期:2023-07-23 16:35:34

問題描述

html:

<head>

<meta charset='utf-8'><meta name='viewport' content='width=device-width, initial-scale=1'><title>test</title><link rel='stylesheet' href='http://m.cgvv.com.cn/wenda/order.css'>

</head>

<body>

<p class='nav'> <h1>Plateform</h1> <ul><li> <p>Order</p> <p id='selected'></p></li><li> <p>Menu</p></li><li> <p>Restuarant</p></li> </ul></p><p class='content'> <p id='left'><ul class='rtab'> <li><p>Manage order</p> </li> <li><p>Completed order</p> </li> <li><p>Closed order</p> </li></ul> </p> <p id='right'> <input type='text' ><button >Search</button> <p class='oders'> <ul class='ctab'><li>All</li><li>Accepted</li><li>Failed</li></ul> <p class='allorders'> <p class='order1'> <p class='title'>dsdsd</p> <p class='userinfo'>dsdsd</p> <p calss='lastt'>dsdsdsds</p>

</p> </p> </p> </p></p>

</body>

css:* {

font-family: Arial;margin: 0 0;

}

body {

background: #333333;

}

.html {

font-size: 6px;h1: 2rem;

}

.nav {

height: 3rem;background-color: #000000;padding-top: 1rem;

}

.nav>h1 {

color: #ffffff;margin-left: 3rem;display: inline-block;

}

.nav>ul {

position: absolute;top: 1.4rem;left: 20rem;display: flex;flex-flow: row-wrap;list-style: none;color: aliceblue;width: 50rem;flex-pack: justify;justify-content: space-around;

}

selected {

position: relative;top: 0.3rem;background-color: #F5B23D;height: 0.5rem;

}

.nav>ul>li {

font-size: 1.5rem;width: 12rem;justify-content: space-around;text-align: center;

}

.nav>ul>li>p {

margin: auto;

}

.content {

display: flex;flex-direction: row;justify-content: space-between;width: auto;margin: 0;padding: 1rem;background-color: #333333;

}

.content p {

margin-top: 0.5rem;width: auto;height: 50rem;

}

left {

background-color: #1F1F1F;margin-right: 1.5rem;margin-left: 1rem;

}

right {

flex-grow: 16;

}

.rtab {

display: block;text-align: center;height: 30rem;width: 10rem;padding-top: 2rem;

}

.rtab>li {

line-height: 3rem;list-style: none;font-size: 1rem;font-weight: bolder;height: 3rem;width: 10.5rem;margin-left: -1.5rem;margin-bottom: 2rem;color: #acacac;

}.rtab>li:first-child {

background-color: #333333;color: #ffffff;

}

search{

width: 36rem;height: 2.5rem;

}

search-button{

width: 10rem;margin-left: 1rem;height: 2.5rem;background-color: #65b59a;color: aliceblue;}

.oders{

background-color: #333333;margin-top: 2rem;

}.ctab{

margin-top: 1.5rem;background-color: #000000;color: aliceblue;list-style: none;height: 3.5rem;margin-bottom: -0.5rem;

}.ctab>li{

display: inline-block;margin-right: 2rem;width: 8rem;text-align: center;font-weight: 800;height: 3rem;line-height: 3rem;

}.ctab>li:first-child{

border-bottom: 0.5rem solid;

}.allorders{

position: relative;background-color: #c1c1c1;padding-top: 0.5rem;height: 10px;width: 10px;

}

.order1{

background-color: aliceblue;height: 1px;margin: 1rem;margin-top: 1rem;}

.title{

height: 1rem;background-color: bisque;height: 1rem;

}

.userinfo{

height: 1rem;background-color: aqua;

}.lastt{

height: 1rem;background-color: #161617;

}

問題解答

回答1:

你的高度是1px

回答2:

在想要的p里面加上css內(nèi)聯(lián)樣式表就好了,比如

<p style='height:20px'>BlaBla</p>

百度一下css獲得更多

PS:這格式真難受= =||

標簽: CSS
相關(guān)文章:
主站蜘蛛池模板: 久久91精品国产91久久跳舞 | 国产欧美久久久另类精品 | 成人欧美精品久久久久影院 | 成年人在线视频观看 | 久久综合久久自在自线精品自 | 中国美女黄色一级片 | 婷婷的久久五月综合先锋影音 | 久草在线视频免费看 | 久久99九九精品免费 | 国产精品久久久久影院 | 99久久精品国产片久人 | 久久久久久久久久久大尺度免费视频 | 92看片淫黄大片看国产片 | 亚洲免费人成在线视频观看 | 久草网站| 中文字幕一区二区三区 精品 | 一区二区三区在线播放视频 | 久久精品国产大片免费观看 | av狼论坛 | 亚洲国产区 | 亚洲看片网站 | 热伊人99re久久精品最新地 | 99久久精品国产9999高清 | 日韩欧美在线观看 | 久久成人网18网站 | 国产2区| 欧美丝袜自拍 | 日本特黄特色视频 | 日本午夜视频 | 久久久久久久国产a∨ | 色综合久久88一加勒比 | 日本一级大黄毛片免费基地 | 国产三级网站 | 精品 日韩 国产 欧美在线观看 | 一级黄网站 | 日本一级特黄a大片在线 | 欧美成人精品一区二区 | 噜噜噜狠狠夜夜躁精品 | 女人张开腿让男人添 | 2级毛片| 久久精品国产免费看久久精品 |