2017-07-03 16 views
0

レスポンシブウェブページを作成しようとしています。 3つのボタンを反応性のあるものに揃えようとしました。私は正常なボタンの更新と cancel.Butリセットボタンを整列させることはできません...それは毎回異なる場所に配置されています。助けpls?jspページのstrutsタグのレスポンシブデザインページ

HTML code: 

<div class="button-container"> 
    <button type="button" style="opacity:0.5;cursor:default;" disabled="disabled" title="Update" id="updPsw"> 
    <span>Update</span> 
    </button> 
    <button class="mdclose" title="Cancel">Cancel</button> 
    <s:reset title="Reset"></s:reset> 
</div> 

CSS: 

.button-container{ 
    position: relative; 
    top :20px; 
    right: 40px; 
} 
input[type="reset"] { 
    padding: 10px 30px 10px 30px; 
    color: #FFF; 
    background-color: #444; 
    font-size: 0.8em; 
    text-align: center; 
    font-style: normal; 
    border-radius: 5px; 
    /* width: 100%; */ 
    border: 1px solid #3ac162; 
    border-width: 1px 1px 3px; 
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.1) inset; 
/* margin-bottom: 10px; */ 
/* margin-top: 22px; */ 
    font-family: 'Lato', Calibri, Arial, sans-serif; 
    cursor: pointer; 
    position: relative; 
    bottom: 42px; 
    right: 62px; 
} 
+0

のStrutsを働きました、それはあなたが必要とするものですか? –

+0

S2タグに異なるテーマを使用するか、HTMLタグを使用します。 –

答えて

-1

CSSコード:

.button-container{ 
    position: inherit; 
    top :20px; 
    right: 40px; 
} 
input[type="reset"] { 
    padding: 10px 30px 10px 30px; 
    color: #FFF; 
    background-color: #444; 
    font-size: 0.8em; 
    text-align: center; 
    font-style: normal; 
    border-radius: 5px; 
    /* width: 100%; */ 
    border: 1px solid #3ac162; 
    border-width: 1px 1px 3px; 
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.1) inset; 
/* margin-bottom: 10px; */ 
/* margin-top: 22px; */ 
    font-family: 'Lato', Calibri, Arial, sans-serif; 
    cursor: pointer; 
    position: relative; 
    bottom: 42px; 
    right: 62px; 
} 

HTMLのCODE:

<div class="button-container"> 
    <button type="button"vstyle="opacity:0.5;cursor:default;" disabled="disabled" title="Update" id="updPsw"> 
    <span>Update</span> 
    </button> 
    <button class="mdclose" title="Cancel">Cancel</button> 
    <button class="mdclose" title="Reset">Reset</button> 
</div> 
+0

あなたのコードにコメントや説明を追加することができます。その結果、あなたが回答したことを理解するのに役立ちます:) –

+0

リセットはstrutsのタグボタンで、struts関連のものをonclick – Raja

0

代わりのストラットタグを使用して、HTMLタグを使用して、コンテンツを生成するために、テーマを使用して