css Formulario de contacto desplegable。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css Formulario de contacto desplegable。相关的知识,希望对你有一定的参考价值。
/* class block-le-llamamos-mobile*/
<?php
global $language;
$particula_idioma = $language -> language;
?>
<ul>
<li class="first">
<a id="toggle-form" href="#toggle-form"><?php print t('We call'); ?></a>
</li>
</ul>
<div class="container-formulario-mobile">
<?php
switch ($particula_idioma) {
case 'es':
$block = module_invoke('webform', 'block_view', 'client-block-447');
print render($block['content']);
break;
case 'en':
$block = module_invoke('webform', 'block_view', 'client-block-448');
print render($block['content']);
break;
default:
$block = module_invoke('webform', 'block_view', 'client-block-447');
print render($block['content']);
break;
}
?>
</div>
<script type="text/javascript">
(function ($) {
Drupal.behaviors.mfs_mobile_form_toggle = {
attach: function (context, settings) {
$("#toggle-form").click(function() {
$(".container-formulario-mobile").slideToggle('fast');
return false;
});
}
};
})(jQuery);
</script>
/*class block blk-le-llamamos*/
<?php
global $language;
$particula_idioma = $language -> language;
?>
<div class="container-ico">
<div class="cont-inner">
<a href="#"><?php print t('Call me back');?></a>
</div>
</div>
<div class="container-formulario">
<?php
switch ($particula_idioma) {
case 'es':
$block = module_invoke('webform', 'block_view', 'client-block-447');
print render($block['content']);
break;
case 'en':
$block = module_invoke('webform', 'block_view', 'client-block-448');
print render($block['content']);
break;
default:
$block = module_invoke('webform', 'block_view', 'client-block-447');
print render($block['content']);
break;
}
?>
</div>
/*BLOCK LE LLAMAMOS*/
.blk-le-llamamos{
display:block;
position: absolute;
right: 0;
z-index: 100;
top: 34px;
}
.logged-in .blk-le-llamamos{
top: 53px;
}
.blk-le-llamamos:hover .container-formulario{
display: block;
}
.blk-le-llamamos .container-ico{
position: absolute;
top: -1px;
right: 0;
padding: 0 0 20px 0;
width: 145px;
text-align: center;
border-radius: 6px;
}
.blk-le-llamamos .container-ico .cont-inner{
background: #35a7df; /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzM1YTdkZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMyMjdjYzAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, #35a7df 0%, #227cc0 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#35a7df), color-stop(100%,#227cc0)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #35a7df 0%,#227cc0 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #35a7df 0%,#227cc0 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #35a7df 0%,#227cc0 100%); /* IE10+ */
background: linear-gradient(to bottom, #35a7df 0%,#227cc0 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#35a7df', endColorstr='#227cc0',GradientType=0 ); /* IE6-8 */
}
.blk-le-llamamos .container-ico:before,
.blk-le-llamamos .container-ico:after {
content: '';
position: absolute;
top: 36px;
left: 9px;
margin-top: 0;
width: 0;
height: 0;
border-bottom: 8px solid transparent;
border-right: 8px solid transparent;
border-left: 8px solid rgba(0,0,0,0);
}
.blk-le-llamamos .container-ico:after {
bottom: -14px;
margin-top: -10px;
border-top: 8px solid #237FC2 ;
}
.blk-le-llamamos .container-ico a{
display: block;
color: #FFF;
border: solid 1px #FFF;
padding: 5px 10px;
font-family: 'belgrano-regular',arial, helvetica, sans-serif;
font-size: 13px;
background: url('../images/ico-telefono.png') no-repeat 8px 3px;
background-size: 18px;
}
.blk-le-llamamos .container-ico:hover a {
}
.blk-le-llamamos .container-formulario{
display: none;
position: absolute;
right: 0;
top: 33px;
background-color: #FFFFFF;
border: 1px solid #D8D8D8;
z-index: 49;
padding: 15px;
width: 400px;
}
.blk-le-llamamos input[type="text"]{
max-width: 100%;
}
.blk-le-llamamos .webform-component-radios{
float: left;
}
.blk-le-llamamos .webform-component-radios .form-radios .form-item{
float: left;
margin: 0 10px 0 0;
}
.blk-le-llamamos .form-actions{
float: right;
}
.block-le-llamamos-mobile{
display: none;
}
/*logged*/
.logged-in .blk-le-llamamos .container-ico{
top: -16px;
}
.logged-in .blk-le-llamamos .container-formulario {
top: 18px;
}
.logged-in .blk-telefono {
top: 40px;
}
/* class block blk-le-llamamos */
/*BLOCK LE LLAMAMOS*/
.blk-le-llamamos{
display:none;
}
.block-le-llamamos-mobile ul {
margin: 0;
}
.block-le-llamamos-mobile form {
color: #ffffff;
float: left;
width: 100%;
}
.block-le-llamamos-mobile form label {
color: #ffffff;
font-weight: normal;
}
.block-le-llamamos-mobile ul li{
list-style: none;
background: url('../images/flecha-entrada.png') no-repeat 0 19px;
background-size: 5px 6px;
padding: 10px 0 0 20px;
margin-left: 7px;
}
.block-le-llamamos-mobile ul li a{
display: block;
padding-top: 5px;
padding-left: 0px;
padding-bottom: 5px;
font-size: 14px;
color: #F1F2F2;
}
.block-le-llamamos-mobile .container-formulario-mobile{
display: none;
}
.block-le-llamamos-mobile .container-formulario-mobile{
float: left;
width: 100%;
margin-bottom: 10px;
padding-bottom: 10px;
border-bottom: 1px solid #ffffff
}
.block-le-llamamos-mobile input[type="text"]{
max-width: 100%;
}
.block-le-llamamos-mobile .webform-component-radios{
float: left;
}
.block-le-llamamos-mobile .webform-component-radios .form-radios .form-item{
float: left;
margin: 0 10px 0 0;
}
.block-le-llamamos-mobile .form-actions{
float: right;
}
以上是关于css Formulario de contacto desplegable。的主要内容,如果未能解决你的问题,请参考以下文章
php 得到更加巧妙的Formulario de busqueda
php Formulario de busqueda desplegable hover
php Ejemplo de Santiago insertaLista listado desplegable insertaformulario formulario desvinculado
php Añadirunmensaje encima del formulario de registro y登录
JavaScript Utilizar la tecla intro como un tabulador de formulario