border-left:100px solid transparent;    左边框隐藏

transform:rotate(45deg);         div旋转45度

用css做一个三角形

<style type="text/css">

#a{
width:0px;
height:0px;
border-top:100px solid #00C;
border-left:100px solid transparent;
border-right:100px solid transparent;}
</style>
<body>
<div id="a"></div>
</body>

用css做一个破折号

<style type="text/css">
#b{
width:100px;
height:100px;
border-left:10px solid #00C;
border-bottom:10px solid #00C;
transform:rotate(45deg);
}
</style> <div id="b"></div>

用div+css做一个提示框

<style type="text/css">
*{ margin:0px auto; padding:0px; font-family:微软雅黑; font-size:14px;}
#content{margin:20px 0px 0px 300px;width:350px; height:100px; border:2px solid #60F; overflow:hidden; padding:10px 10px 10px 10px}
#waiceng{width:100px; height:50px;margin-left:320px; overflow:hidden; margin-top:-2px}
#sanjiao{width:50px; height:50px; border:2px solid #60F;transform:rotate(45deg); position:relative;top:-27px; border-left:0px; border-top:0px; background-color:white;}
</style> <div id="content">
CSS3中添加的transform是对元素进行变化操作的,包括位移,旋转,放大,变形等操作。这里我的代码均是采用标准的css3规范书写,大家使用的时候为了兼容可加上-webkit-、-o-、-ms-、-moz-、-khtml-等前缀以适应不同的浏览器。
</div>
<div id="waiceng">
<div id="sanjiao"></div>
</div>

效果图:

括号内可以写加或减,要使等式成立,括号里面应该填什么值。

123()45()56()78 ()90 = 100

<script type="text/javascript">
var s="";
for(var i=-1;i<2;i=i+2)
{
for(var x=-1;x<2;x=x+2)
{
for(var y=-1;y<2;y=y+2)
{
for(var z=-1;z<2;z=z+2)
{
var zhi=123+i*45+x*56+y*78+z*90;
if(zhi==100)
{
s="("+i+")("+x+")("+y+")("+z+")";
}
}
}
}
}
alert(s);
</script>

1. 括号内可以写加或减,要使等式成立,括号里面应该填什么值。

123()45()56()78 ()90 = 100

随机推荐

  1. aspcms标签

    [newslist:date style=yy-m-d] 日期格式 {aspcms:sitepath}/Templates/{aspcms:defaulttemplate} 幻灯片标签{aspcms: ...

  2. iOS 容器 addChildViewController

    //在parent view controller 中添加 child view controller FirstViewController *firstViewController=[[First ...

  3. BZOJ 4596: [Shoi2016]黑暗前的幻想乡

    Sol 容斥原理+Matrix-Tree定理.容斥跟小星星那道题是一样的,然后...直接Matrix-Tree定理就可以了... 复杂度\(O(2^{n-1}n^3)\) PS:调了好久啊QAQ 明明 ...

  4. Java WebClient 总结

    private WebClient getAWebClient() { WebClient webClient = new WebClient(BrowserVersion.FIREFOX_24); ...

  5. 实现Redis的主从复制配置

    实现Redis的主从复制配置比较简单,而且容易明白. 下图是要配置的主从复制结构图: 1.说明 Redis主从复制中一个主服务可以有多个从服务,一个从服务可以有多个从服务. 配置比较简单,只需要更改r ...

  6. 【GoLang】golang中可以直接返回slice吗?YES

    结论: 可以,slice本质是结构体,返回slice时返回的是结构体的值,结构体的指针.len.cap等信息也全部返回了. 如下: type slice struct { start *uintptr ...

  7. fstream的使用方法介绍

    转载自:  fstream的使用方法介绍 - saga's blog - C++博客 http://www.cppblog.com/saga/archive/2007/06/19/26652.html ...

  8. poj 1001

    http://poj.org/problem?id=1001 这是一道高精度的运算,如果你之前有写过那种高精度的乘法的题目的话,做这个也还是比较简单的.. 思路:我是首先把小数点的位置确定下来,然后其 ...

  9. Python QRCODE

  10. jdbc mysql crud dao模型 sql注入漏洞 jdbc 操作大文件

    day17总结 今日内容 l JDBC 1.1 上次课内容总结 SQL语句: 1.外键约束:foreign key * 维护多个表关系! * 用来保证数据完整性! 2.三种关系: * 一对多: * 一 ...