亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

為什么設置了單選按鈕透明度,怎么沒反應

*{

margin: 0;

padding: 0;

}

body{

font-family: Georgia,serif;

background: #ddd;

font-weight: 400;

font-size: 15px;

color: #333;

-webkit-font-smoothing:antialiased;


}

a{

text-decoration: none;

color:#555;

}

<!-- 鏈接樣式-->

.clr{

width: 0;

height:0;

overflow: hidden;

clear: both;

padding :0;

margin: 0;

}

.st-container{

width:100%;

height: 100%;

position: :absolute;

left: 0;

top :0;

font-family: "Josefin Slab","Myriad Pro",Arial,sans-serif;

}

.st-container > input,

.st-container > a{

width: 20%;

height: :34px;

line-height: 34px;

position: fixed;

bottom:0;



}

.st-container > input{

<!--- display: :none;position: absolute;left :-99999px;visibility: hidden;opacity: 0

都可以把元素影藏掉,

display: :none;影藏不占位,不在這個地方。position: absolute;在這個地方。left :-99999px;不存在--->

opacity: 0.8 ;

z-index:1000;


}

.st-container > a{

z-index: 10;

font-weight: 700;

font-size: 16px;

background: #e23a6e;

text-align: center;

color: #fff;

box-shadow: 1px 1px 1px rgba(151,24,64,0.2);

}

#st-control-1,#st-control-1 + a{

? ? left: 0%;


}

#st-control-2,#st-control-2 + a {

left: 20%;

}

#st-control-3,#st-control-3 + a {

left: 40%;

}

#st-control-4,#st-control-4 + a {

left: 60%;

}

#st-control-5,#st-control-5 + a {

left: 80%;

}

.st-container input:checked + a {

background:#821134;?


}

http://img1.sycdn.imooc.com//596c8fb00001e68d13650597.jpg

正在回答

4 回答

<!doctype html>

<html>

<head>

<title>CSS實現的頁面平滑過渡</title>

<meta charset="utf-8" >

<!--最新渲染模式-->


<meta http-equiv="X-UA-Compatible" content="IE-edge, chrome=1">

<!--不會產生滾動條,窗體布局會自動縮放-->

<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="http:fonts.googleapis.com/css?family=Josefin+Slab:400,700" rel="stylesheet" type="text/css">

<link type="text/css" rel="stylesheet" href="css/normalize.css">

<link type="text/css" rel="stylesheet" href="css/style.css">

</head>

<body>

? ? ?<div>

? ? ? ? <div>

? ? ? ? <!--nav begin-->

? ? ? ? <input type="radio" name="radio-set" checked="checked" id="st-control-1">

? ? ? ? <a href="#st-panel-1">Serendipity </a>

? ? ? ? <input type="radio" name="radio-set" ?id="st-control-2">

? ? ? ? <a href="#st-panel-2">Happiness </a>

? ? ? ? <input type="radio" name="radio-set" ?id="st-control-3">

? ? ? ? <a href="#st-panel-3">Tranquillity </a>

? ? ? ? <input type="radio" name="radio-set" ?id="st-control-4">

? ? ? ? <a href="#st-panel-4">Postitivity </a>

? ? ? ? ?<input type="radio" name="radio-set" ?id="st-control-5">


? ? ? ? <a href="#st-panel-5">Passion </a>

? ? ? ? <!--nav end ?-->

? ? ? ? </div>

</div>

</body>

<html>


0 回復 有任何疑惑可以回復我~

一會幫你看一下,你把html的代碼也貼一下吧

0 回復 有任何疑惑可以回復我~

點擊和劃過都沒反應

0 回復 有任何疑惑可以回復我~

是點擊沒反應,還是劃過沒反應

0 回復 有任何疑惑可以回復我~
#1

cym01494 提問者

誰能幫我看出代碼是否有錯
2017-07-20 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么設置了單選按鈕透明度,怎么沒反應

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號