我需要一些帮助,我有一个带有border-radius的div,我需要它在circle div之外是透明的.我尝试过:之后和大纲.随着":after"边界留在div中并且有了轮廓,我无法将其四舍五入.
有人知道答案吗 ?
CSS:
div.circle {
background: black;
width: 5em;
height: 5em;
-moz-border-radius: 2.5em;
-webkit-border-radius: 2.5em;
border-radius: 2.5em;
}
div.circle p {
padding: 2em 2em 0 2em;
color: white;
}
div.circle:after {
content:'';
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
border-radius: 2.5em;
border: 4px solid rgba(255, 255, 255, 0.51);
}
Run Code Online (Sandbox Code Playgroud)
带有outline属性的CSS:
div.circle {
outline: 4px solid rgba(255,255,255,0.3);
background: black;
width: 5em; height: 5em;
-moz-border-radius: 2.5em;
-webkit-border-radius: 2.5em;
border-radius: 2.5em;
}
Run Code Online (Sandbox Code Playgroud)
我在Expression Engine中遇到了联系表单的问题.我正在使用文档中的代码,但在提交后我收到此错误:
This form has expired. Please refresh and try again.
Run Code Online (Sandbox Code Playgroud)
我的代码:
{exp:email:contact_form user_recipients="no" recipients="my@emailadress.com" charset="utf-8"}
<h2>Support Form</h2>
<p>
<label for="from">Your Email:</label><br />
<input type="text" id="from" name="from" size="40" maxlength="35" value="{member_email}" />
</p>
<p>
<label for="subject">Subject:</label><br />
<input type="text" id="subject" name="subject" size="40" value="Contact Form" />
</p>
<p>
<label for="message">Message:</label><br />
<textarea id="message" name="message" rows="18" cols="40">
Support Email from: {member_name}
Sent at: {current_time format="%Y %m %d"}
</textarea>
</p>
<p>
<input name="submit" type='submit' value='Submit Form' />
</p>
{/exp:email:contact_form}
Run Code Online (Sandbox Code Playgroud)
我正在使用Expression Engine 2.8.0.多谢你们!