Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12
  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2004
    Messaggi
    27

    grandezza campo testo diversa tra IE e FF come risolvere?

    Ciao a tutti ho bisogno di una mano x' ho un problema fastidioso

    classico campo user name e password

    con Firefox e opera i campi di testo si vedono nella medisima grandezza

    IE del cavolo fa il campo pass + piccolo

    qui il codice

    codice:
    <p align=right>
        Username: <input type="text" name="user" size="10" /> 
        Password: <input type="password" name="passwrd" size="10" />
    </p>
    ecco l'immagine con IE



    ecco l'immagine con FF



    come posso risolvere?

    di seguito il codice completo della form

    codice:
    <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
    			
    			<form action="', sefReltoAbs($scripturl . 'action=login2'), '" method="post" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
    				<p align=right>
    				',$txt[35],': <input type="text" name="user" size="10" /> 
    				',$txt[36],': <input type="password" name="passwrd" size="10" />
    				</p>
    				<select name="cookielength">
    					<option value="60">', $txt['smf53'], '</option>
    					<option value="1440">', $txt['smf47'], '</option>
    					<option value="10080">', $txt['smf48'], '</option>
    					<option value="302400">', $txt['smf49'], '</option>
    					<option value="-1" selected="selected">', $txt['smf50'], '</option>
    				</select>
    				<input type="submit" value="', $txt[34], '" />
    
    				<span class="middletext">', $txt['smf52'], '</span>
    				<input type="hidden" name="hash_passwrd" value="" />
    				<input type="hidden" name="op2" value="login" />
    				<input type="hidden" name="option" value="com_smf" />
    				<input type="hidden" name="Itemid" value="', $menu_item['id'], '" />
    				<input type="hidden" name="action" value="login2" />
    				<input type="hidden" name="returnurl" value="', $params->get('login'), '" />
    				<input type="hidden" name="lang" value="', $mosConfig_lang, '" />
    				<input type="hidden" name="return" value="', $mosConfig_sef=='1' ? sefReltoAbs(basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING']) : $mosConfig_live_site . '/' . basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING'], '" />
    				<input type="hidden" name="message" value="', $message_login, '" />
    
    			</form>
    il paragrafo <p align=right> l'ho messo io per cercare di allineare il campo username e password

  2. #2
    Utente di HTML.it
    Registrato dal
    Jan 2004
    Messaggi
    27

    modifica <p con <div risultato = :(

    ho modificato con un <div (all'interno della form) x' mi è stato consigliato come soluzione migliore

    così

    codice:
    <div align=right>
        Username: <input type="text" name="user" size="10" /> 
        Password: <input type="password" name="passwrd" size="10" />
    </div>
    ma il risultato è lo stesso

    IE non vede i 2 campi =

  3. #3
    Utente di HTML.it
    Registrato dal
    Jan 2004
    Messaggi
    27
    NON CI SALTO FUORI

    non riesco a risolvere mi date consiglio e mi indirizzate non ne vogliono sapere di rimanere uguali i 2 campi username e password

    AIUTO per favore

  4. #4
    prova con css:

    codice:
    <style type="text/css">
    input{
    width:70px;
    }
    ciaux

  5. #5
    Utente di HTML.it
    Registrato dal
    Jan 2004
    Messaggi
    27
    ciao!!!

    e grazie delle risposta!!!

    con i css sono brocco fisso

    sbaglio ma non so dove

    Mi puoi spiegare gentilmente come posso usare quel codice che mi hai messo?

    ho fatto un po di prove leggendomi anche qui come iserire un foglio di stile in un documento, ma mi da sempre errore di php

    qui sotto in allegato l'intero codice della pagina, nel primo post il codice interessato (credo)

    QUI IL CODICE COMPLETO

    Ti ringrazio tantissimo del tuo aiuto

    Dafebe

  6. #6
    il tuo link non si apre

    cmq la struttura (ridotta all'osso) di una pag è questa:

    codice:
    <html>
    <head>
    
    <style type="text/css">
    input{
    width:70px;
    }
    </style>
    
    </head>
    
    <body>
    
    </body>
    </html>
    ciaux

  7. #7
    Utente di HTML.it
    Registrato dal
    Jan 2004
    Messaggi
    27
    strano a me il link si apre è una pagina txt
    questo è il link

    http://scienzemotorie.ilbello.com/login.txt


    forse ho commeso un errore ho fatto come dici tu ma mi da errore di php

    la pagina è fatta in php e non c'è <head

    se aggiungo il codice che mi hai dato con o senza head a inizio pagina mi da errore cavolo

    la pagina inizia così

    codice:
    <?php
    /******************************************************************************
    * mod_smf_login.php                                                                     *
    *******************************************************************************
    * SMF: Simple Machines Forum                                                  *
    * Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com)                *
    * =========================================================================== *
    * Software Version:           SMF 1.1 RC3                                     *
    * Software by:                Simple Machines (http://www.simplemachines.org) *
    * Copyright 2001-2006 by:     Lewis Media (http://www.lewismedia.com)         *
    * Support, News, Updates at:  http://www.simplemachines.org                   *
    *******************************************************************************
    * This program is free software; you may redistribute it and/or modify it     *
    * under the terms of the provided license as published by Lewis Media.        *
    *                                                                             *
    * This program is distributed in the hope that it is and will be useful,      *
    * but WITHOUT ANY WARRANTIES; without even any implied warranty of            *
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                        *
    *                                                                             *
    * See the "license.txt" file for details of the Simple Machines license.      *
    * The latest version can always be found at http://www.simplemachines.org.    *
    ******************************************************************************/
    if (!defined('_VALID_MOS'))
    	die('Direct Access to this location is not allowed.');
    
    	global $smf_path, $bridge_reg, $maintenance, $sourcedir, $context, $user, $mosConfig_live_site, $mosConfig_db, $mosConfig_dbprefix;
    
    // Get the configuration.  This will tell Mambo where SMF is, and some integration settings
    	$database->setQuery("
    				SELECT `variable`, `value1`
    				FROM #__smf_config
    				");
    	$variables = $database->loadAssocList();
    	
    	foreach ($variables as $variable){
    		$variable_name = $variable['variable'];
    		$$variable_name = $variable['value1'];
    	}
    	
    if (!defined('SMF'))
    {	
    	require_once($smf_path . '/SSI.php');	
    }
    e termina così

    codice:
    <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
    			
    			<form action="', sefReltoAbs($scripturl . 'action=login2'), '" method="post" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
    				<div align=right>
    				',$txt[35],': <input type="text" name="user" size="10" /> 
    				',$txt[36],': <input type="password" name="passwrd" size="10" />
    				</div>
    				<select name="cookielength">
    					<option value="60">', $txt['smf53'], '</option>
    					<option value="1440">', $txt['smf47'], '</option>
    					<option value="10080">', $txt['smf48'], '</option>
    					<option value="302400">', $txt['smf49'], '</option>
    					<option value="-1" selected="selected">', $txt['smf50'], '</option>
    				</select>
    				<input type="submit" value="', $txt[34], '" />
    
    				<span class="middletext">', $txt['smf52'], '</span>
    				<input type="hidden" name="hash_passwrd" value="" />
    				<input type="hidden" name="op2" value="login" />
    				<input type="hidden" name="option" value="com_smf" />
    				<input type="hidden" name="Itemid" value="', $menu_item['id'], '" />
    				<input type="hidden" name="action" value="login2" />
    				<input type="hidden" name="returnurl" value="', $params->get('login'), '" />
    				<input type="hidden" name="lang" value="', $mosConfig_lang, '" />
    				<input type="hidden" name="return" value="', $mosConfig_sef=='1' ? sefReltoAbs(basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING']) : $mosConfig_live_site . '/' . basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING'], '" />
    				<input type="hidden" name="message" value="', $message_login, '" />
    
    			</form>
    
    			',$txt[315],'';
    	}
    	if ($params->get('login') == '2' && (!isset($_REQUEST['action']) || $_REQUEST['action'] != 'login') && (!isset($_REQUEST['option']) || $_REQUEST['option'] != 'com_smf_registration'))
    		$_SESSION['return'] = $mosConfig_sef=='1' ? sefReltoAbs(basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING']) : $mosConfig_live_site . '/' . basename($_SERVER['PHP_SELF']) . '?' . $_SERVER['QUERY_STRING'];
    
    	echo '
    		</td>
    	</tr></table>
    </div>';
    
    mysql_select_db($mosConfig_db);
    
    ?>
    cavolo alla fine sarà una cavolata e io ci sono da 1 settimana

    GRAZIE DEL TUO AIUTO!!!

  8. #8
    attento a non fare confusione tra codice html e php(latoserver)

    quello che ti ho fornito io è il codice così come deve arrivare al browser
    quello che hai postato tu è il codice php latoserver prima che venga interpretato e spedito all'utente.

    Quello che devi fare è "interpretare" il codice php, capire dove viene generato <head></head> e inserirci il codice css che ti ho postato.


    ti sposto in php

    ciaux

  9. #9
    Modifica i due input dandogli un stile inline... così:
    codice:
    <input type="text" name="user" style="width:70px;" /> 
    <input type="password" name="passwrd" style="width:70px;" />


    _YD

  10. #10
    Utente di HTML.it
    Registrato dal
    Jan 2004
    Messaggi
    27
    Originariamente inviato da webdemo
    attento a non fare confusione tra codice html e php(latoserver)

    quello che ti ho fornito io è il codice così come deve arrivare al browser
    quello che hai postato tu è il codice php latoserver prima che venga interpretato e spedito all'utente.

    Quello che devi fare è "interpretare" il codice php, capire dove viene generato <head></head> e inserirci il codice css che ti ho postato.


    ti sposto in php

    ciaux
    cavolo sei un GENIO!!!

    SUPERRRRRRRRR

    grazie mille veramente perfetto ora...

    azz se stai vicino a me ti pago da bere

    mi puoi spiegare il codice che differenza ha??? sono una pippa assoluta ma ci tengo a imparare

    GRAZIE!!!!!!!

    EDIT: ho visto ora di dove sei ero troppo preso dall entusiasmo ho detto una cavolata stiamo a 300 km scusami

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.