#scrolling_1 { width:635px; height:240px; overflow:hidden; padding:1px; border:1px solid #999; margin:0 auto; text-align: left; }
#scrollnews_1 { position:absolute; width:645px; height:240px; overflow:hidden; display:inline; top:1; left:1; }
#scrollnews_con_1 { width:645px; overflow:hidden; }
#scrolling_1 ul { display:block; height:240px; width:645px; }
#scrolling_1 ul li { height: 240px; width: 205px; float: left; overflow:hidden; display: inline; margin-right: 10px; }
这个我想给PHP变量付值后输出。
<?
for (i=0 ;i=100; i++) {
echo "#scrolling_1 { width:635px; height:240px; overflow:hidden; padding:1px; border:1px solid #999; margin:0 auto; text-align: left; }";
#scrollnews_1 { position:absolute; width:645px; height:240px; overflow:hidden; display:inline; top:1; left:1; }
#scrollnews_con_1 { width:645px; overflow:hidden; }
#scrolling_1 ul { display:block; height:240px; width:645px; }
#scrolling_1 ul li { height: 240px; width: 205px; float: left; overflow:hidden; display: inline; margin-right: 10px; }}
?>
这么写了以后,不正常了。
我该怎么写呢?
解决方案 »
- php伪静态后 页面里所有的链接都要手动修改么?
- dreamweaver 在onload 运行login user.htm发生了一下java script错误
- unexpected T_STRING, expecting T_VARIABLE 深夜未睡的大神们,靠你们了!
- php fopen()只能用r模式打开,不能用其他的模式
- PHP如何去掉所调用中文字间的所有空格?
- 为何说BCDIV未定义
- 以最高分回报:两个时间相减,怎样才能得到相差的分钟数? 请各位敬爱的高手帮一下忙!
- mysql和我过不去
- 谁能帮我做一个显示来访者的IP、操作系统和浏览器的的php程序
- php微信网页下拉列表value值获取问题
- eclipse xdebug 断点不起作用
- 关于php中 SOCKET 从服务端返回客户端数据问题
循环写错了吧
即
for ($i=0 ;$i=100; $i++) {
上面的代码写错了。
我从新写了。
#scrolling_1 { width:635px; height:240px; overflow:hidden; padding:1px; border:1px solid #999; margin:0 auto; text-align: left; }
#scrollnews_1 { position:absolute; width:645px; height:240px; overflow:hidden; display:inline; top:1; left:1; }
#scrollnews_con_1 { width:645px; overflow:hidden; }
#scrolling_1 ul { display:block; height:240px; width:645px; }
#scrolling_1 ul li { height: 240px; width: 205px; float: left; overflow:hidden; display: inline; margin-right: 10px; }
这个我想给PHP变量付值后输出。
<?
for ($i=0 ;$i<=100; $i++) {
echo "#scrolling_1 { width:635px; height:240px; overflow:hidden; padding:1px; border:1px solid #999; margin:0 auto; text-align: left; }";
#scrollnews_1 { position:absolute; width:645px; height:240px; overflow:hidden; display:inline; top:1; left:1; }
#scrollnews_con_1 { width:645px; overflow:hidden; }
#scrolling_1 ul { display:block; height:240px; width:645px; }
#scrolling_1 ul li { height: 240px; width: 205px; float: left; overflow:hidden; display: inline; margin-right: 10px; }
}
?>
这么写了以后,不正常了。
我该怎么写呢?
<?php
for ($i=0 ;$i<=100; $i++) {
echo "#scrolling_1 { width:635px; height:240px; overflow:hidden; padding:1px; border:1px solid #999; margin:0 auto; text-align: left; }
#scrollnews_1 { position:absolute; width:645px; height:240px; overflow:hidden; display:inline; top:1; left:1; }
#scrollnews_con_1 { width:645px; overflow:hidden; }
#scrolling_1 ul { display:block; height:240px; width:645px; }
#scrolling_1 ul li { height: 240px; width: 205px; float: left; overflow:hidden; display: inline; margin-right: 10px; }
";
}
?>