【发布时间】:2014-01-11 00:50:00
【问题描述】:
我不能在潮汐dk 中用 css 做一些事情
我尝试做一个 css circles,我正在使用 1.3.1-beta,但它不起作用,我不知道我做错了什么。
你能帮帮我吗?
<html>
<head>
<title>Sample</title>
<link href="style.css" type="text/css" rel="stylesheet" media="screen" />
</head>
<body>
<div id="advanced" class="circle"></div>
</body>
</html>
我用这个
.circle {
border-radius: 50%;
display: inline-block;
margin-right: 20px;
}
#advanced {
width: 200px;
height: 200px;
background-image: -moz-radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);
background-image: -webkit-radial-gradient(45px 45px, circle cover, yellow, orange);
background-image: radial-gradient(45px 45px 45deg, circle cover, yellow 0%, orange 100%, red 95%);
-webkit-animation-name: spin;
-webkit-animation-duration: 3s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-moz-animation-name: spin;
-moz-animation-duration: 3s;
-moz-animation-iteration-count: infinite;
-moz-animation-timing-function: linear;
-ms-animation-name: spin;
-ms-animation-duration: 3s;
-ms-animation-iteration-count: infinite;
-ms-animation-timing-function: linear;
}
我在 chrome 和这个工作中使用了这个,但在潮汐dk 应用程序中没有使用
编辑:
我发现了这个老方法做模糊,它不是常规的,但它看起来像 TideSDK 不接受 css3 =(
HTML:
<div id="container">
<div />
<div class="blur" />
</div>
CSS:
#container{ overflow: hidden; position: relative; width: 200px;
height: 200px;}
#container div{
position: absolute;
left: 0;
top: 0;
z-index: 0;
width: 200px;
height: 200px;
border-radius: 40px;
background: orange;
}
#container div.blur:hover{opacity: 0.6; background: white;}
#container div.blur{opacity: 0; }
【问题讨论】: