第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

請(qǐng)教grid-template-areas,用stylus怎么寫(xiě)啊?出不來(lái)應(yīng)有的效果

用stylus來(lái)寫(xiě)網(wǎng)格區(qū)域,引用的時(shí)候,出不來(lái)效果,正常的css沒(méi)問(wèn)題,特請(qǐng)教。

正在回答

2 回答

寫(xiě)成一行程序沒(méi)問(wèn)題,程序正常執(zhí)行

? ? grid-template-areas "title title header header" "time time swiper swiper" "block1 block2 swiper swiper" "block3 block4 swiper swiper" "block5 block6 swiper swiper" "block7 block7 video info"

但是格式很難看,失去了所見(jiàn)既布局的意思,多行的話,代碼沒(méi)有執(zhí)行? ?

?grid-template-areas "title title header header"

? ? ? ? ? ? ? ? ? ? ? ? ???????????"time time swiper swiper"

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?"block1 block2 swiper swiper"

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?"block3 block4 swiper swiper"

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?"block5 block6 swiper swiper"

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?"block7 block7 video info"

1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

WindBelll

源碼看下
2019-04-08 回復(fù) 有任何疑惑可以回復(fù)我~
#2

愛(ài)米

您好,方便把您寫(xiě)的源碼發(fā)出來(lái)看一下嗎?
2019-04-11 回復(fù) 有任何疑惑可以回復(fù)我~
#3

SuperHulk

1111111
2019-04-19 回復(fù) 有任何疑惑可以回復(fù)我~
#4

SuperHulk 回復(fù) SuperHulk

111
2019-04-19 回復(fù) 有任何疑惑可以回復(fù)我~
查看1條回復(fù)
給你個(gè)例子看看,歡迎采納
<!DOCTYPE?html>
<html>
<head>
?<meta?charset="UTF-8">
?<title>grid-template-areas</title>
?<style>
?*{
??margin:0;
??padding:0;
??list-style:none;
?}
?.container{
??border:1px?solid?#000;
????????width:600px;
????????height:200px;
????????margin:50px?auto;
????????display:grid;
????????/*repeat(repeat,value)函數(shù),只試用于下面兩者*/
????????grid-template-columns:100px?repeat(2,200px)?100px;
????????grid-template-rows:repeat(2,100px);
????????/*第一行與第二行之間用空格隔開(kāi)即可,需要用雙引號(hào)包裹起來(lái)*/
????????grid-template-areas:"one?area?area?two"
?????????????"three?area?area?four";
????????/*align-items:center;*/
????????/*justify-items:center;*/
????????text-align:center;
????????line-height:100px;
????????/*place-items:center;*/
?}
?/*相同區(qū)域的取同一個(gè)名字即可*/
?.container>div:nth-child(1){
??background:blue;
??grid-area:one;
?}
?.container>div:nth-child(2){
??background:#fff;
??grid-area:area;
?}
?.container>div:nth-child(3){
??background:#fff;
??grid-area:area;
?}
?.container>div:nth-child(4){
??background:red;
??grid-area:two;
?}
?.container>div:nth-child(5){
??background:yellow;
??grid-area:three;
?}
?.container>div:nth-child(6){
??background:#fff;
??grid-area:area;
?}
?.container>div:nth-child(7){
??background:#fff;
??grid-area:area;
?}
?.container>div:nth-child(8){
??background:orange;
??grid-area:four;
?}
?</style>
</head>
<body>
?<div?class="container">
??<div>1</div>
??<div></div>
??<div></div>
??<div>2</div>
??<div>3</div>
??<div></div>
??<div></div>
??<div>4</div>
?</div>
</body>
</html>


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

蘭亭一夢(mèng) 提問(wèn)者

兄弟你好,寫(xiě)成一行沒(méi)問(wèn)題,多行不行
2019-04-07 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

請(qǐng)教grid-template-areas,用stylus怎么寫(xiě)啊?出不來(lái)應(yīng)有的效果

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)