table表格怎么布局尤其是条件1与条件1之间的线,谢谢大家
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>线的过渡动画效果Demo</title>
</head>
<style>
.animate {
/*width: 0;*/
height: 0;
/*-webkit-transition: width 1600ms cubic-bezier(0.215, 0.61, 0.355, 1);*/
/* transition: width 1600ms cubic-bezier(0.4, 0.61, 0.355, 1); */
/*transition: width 1600ms; */
transition: height;
}
.div1 {
/*width: 100%;*/
/*height: 2px;*/
width: 2px;
/*background: #c2c2c2;*/
background: #f46c0e;
margin-left:100px;
}
</style>
<body bgcolor="#f6f5f5">
<!-- <div>线的过渡动画效果</div> -->
<br/>
<div style="width:400px;height:400px">
<div class="div1 animate"></div>
</div>
</body>
<script type="text/javascript">
function line(){
var t = setTimeout(function(){
var element = document.getElementsByClassName("div1")[0];
console.log(element);
// element.style.width = "100%";
element.style.height = "100%";
element.style.transitionDuration = "3s";
element.style.transitionTimingFunction="cubic-bezier(0.4, 0.61, 0.355, 1)"
},3000);
}
line();
</script>
</html>
3 回答5.1k 阅读✓ 已解决
5 回答1.9k 阅读
2 回答1.9k 阅读✓ 已解决
1 回答3k 阅读✓ 已解决
3 回答2.4k 阅读
4 回答2.2k 阅读
3 回答2.1k 阅读
这个不能直接用table实现吧。可以用div span 结合css实现。