.content {
float: left;
width: 100%;
background-image: url('images/zwemmen.png');
height: 501px;
-webkit-filter: blur(3px);
-moz-filter: blur(3px);
-o-filter: blur(3px);
-ms-filter: blur(3px);
filter: blur(3px);
}
.opacity {
background-color: rgba(5, 98, 127, 0.9);
height: 100%;
overflow: hidden;
}
.info {
float: left;
margin: 100px 0px 0px 30px;
width: 410px;
}
Run Code Online (Sandbox Code Playgroud)
<div class="content">
<div class="opacity">
<div class="image">
<img src="images/zwemmen.png" alt="" />
</div>
<div class="info">
a div wih all sort of information
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
如果我不想模糊按钮,我需要做什么?
我想立刻获得所有剩余的未使用的参数.我该怎么做?
parser.add_argument('-i', action='store', dest='i', default='i.log')
parser.add_argument('-o', action='store', dest='o', default='o.log')
Run Code Online (Sandbox Code Playgroud) 我最近开始使用 rspec 进行测试,所以我可能会犯错误,如果有更好的方法请纠正我
我创建了两个相关模型
let(:user) {FactoryGirl.create :user}
let!(:participation) {FactoryGirl.create :participation, user: user}
Run Code Online (Sandbox Code Playgroud)
在其中一项测试更改相关对象之一之前
context "when" do
before {participation.prize = 100}
it "" do
binding.pry
end
end
Run Code Online (Sandbox Code Playgroud)
但里面
participation.prize => 100
user.participatons.select(:prize) => nil
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么 ?以及如何解决它?
我想在Python 3.3中使用Windows中的路径,但是我有一个错误:
FileNotFoundError:[Errno 2]没有这样的文件或目录:'E:\\ dir \\ .project'
问题是双反斜杠.我用r读了解决方案.
def f(dir_from):
list_of_directory = os.listdir(dir_from)
for element in list_of_directory:
if os.path.isfile(os.path.join(dir_from, element)):
open(os.path.join(dir_from, element))
f(r'E:\\dir')
Run Code Online (Sandbox Code Playgroud)
我又有这个错误
FileNotFoundError:[Errno 2]没有这样的文件或目录:'E:\\ dir \\ .project'
os.path.normpath(path)
不解决我的问题.
我究竟做错了什么?