There is always a blank line of code at the top of the php display page & lt; html & nbsp; xmlnswww. w3.org1999xhtml & gt; & lt; head & gt; & lt; meta & nbsp; http-equivContent-Type & nbsp; contenttexthtml; & nbsp; charsetutf-8 & nbsp; there is always a blank line at the top of the php display page.
Code
No sdf
BeginWidget ('cactiveform', array (
'Id' => 'Login-form ',
'Enablesclientvalidation '=> true,
'Clientopexception' => array (
'Validateonsubmit '=> true,
),
);?>
LabelEx ($ model, 'Username');?>
TextField ($ model, 'Username');?>
Error ($ model, 'Username');?>
LabelEx ($ model, 'password');?>
PasswordField ($ model, 'password');?>
Error ($ model, 'password');?>
CheckBox ($ model, 'memberme');?>
Label ($ model, 'Remember me ');?>
Error ($ model, 'memberme');?>
EndWidget ();?>
-- Css
Body {
Font-size: 14px;
Margin: 0px;
Font-family: "";
}
. Container {
Margin-top: 0px;
Width: 100%;
Background-color: # 6633CC;
}
. Main {
Width: 100%;
Min-height: 500px;
}
. Form {
Padding-top: 250px;
Padding-left: 850px;
}
-- Under firefox dug
????? // The error is blank here
No sdf
PHP
Share:
------ Solution --------------------
Save as UTF-8 without bom format
------ Solution --------------------
Reference:
Save as UTF-8 without bom format
This should be the reason. to change the encoding format, you must use the non-BOM format. I have encountered this problem before. after a long time, I accidentally changed it and found the problem.