简体   繁体   English

Drupal 7的Webform模块中的问题

[英]issue in webform module of drupal 7

I am using drupal web form module . 我正在使用drupal Web表单模块。 the form is added in block . 表格被添加到block中。 but when i resize the window the text fields do not change. 但是当我调整窗口大小时,文本字段不会更改。 the size remains same , i have edited to change label and submit image but unable to change text fields here is my css 大小保持不变,我已编辑过更改标签和提交图像的操作,但是无法更改文本字段,这是我的CSS

input.webform-calendar {
    display: none;
    padding: 3px;
    vertical-align: top;
}
html.js input.webform-calendar {
    display: inline;
}
.webform-container-inline label {
    display: inline;
    margin-right: 1em;
}
.webform-container-inline div, .webform-container-inline div.form-item {
    display: inline;
}
.webform-container-inline div.description {
    display: block;
}
.webform-container-inline div.messages {
    display: block;
    float: left;
}
.webform-container-inline div.ajax-progress-bar div {
    display: inherit;
}
.webform-client-form #edit-submit {
    background: url("../images/submit.png") no-repeat scroll 0 0 / 100% auto rgba(0, 0, 0, 0);
    border: medium none;
    cursor: pointer;
    font-size: 0;
    height: 31px;
    line-height: 0;
    margin-left: 10%;
    overflow: hidden;
    text-indent: -99999px;
    width: 35%;
}
.form-textarea-wrapper textarea {
    width: 58%;
}

You want to set a width of the form... 您想设置表格的宽度...

.form-notice form {
   width: 60%;
}

Then set your form elements to the following... 然后将表单元素设置为以下内容...

.form-notice .form-text,
.form-notice .form-textarea {
   width: 100%;
}

This way the form elements will fit whatever the size the form has resized to. 这样,表单元素将适合表单已调整大小的大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM