By 
Xandr555
				
					
						Здравствуйте. Верстаю сайт, в валидаторе firefox выскакивает "parse error" в css для мобильных браузеров. По задумке <span class="phonecpu">текст</span> виден на десктопах, а на мобильных  display:none его закрывает.  При валидации стилей для медиа-запроса - parse error стиля .phonecpu. В чем может быть причина?
 <nav class="one">
     <ul class="topnav">
      <li><a class="activeone"href="#"><span class="icon-home"></span></a></li>
      <li><a href="#"class="active"><span class="icon-phone">
      <span class="phonecpu">Вызвать мастера</span></span></a>
      <ul class="submenu">
       <li>
        <a href="tel:x-x-x">x-x-x</a>
       </li>
       <li><a href="tel:x-x-x">x-x-x</a></li>
      </ul>
      </li>
      <li class="right"><a class="activeone"href="price.html" id="price">Прайс</a></li>
     </ul>
    </nav>
@media only screen{@media screen and (min-device-width: 360px) and (max-device-width: 740px){
   .wraper{
 margin:0 auto}.demo-content{text-align:center}
.part{max-height:310px;max-height:100%; display:flex;
display: -webkit-flex;justify-content:center}
figure.img-box img{max-width:100%;vertical-align:top}figure.img-box:after{
  border: 2px solid #FF0000}
  .img-box:hover figcaption,.img-box:hover .imgone{transform: scale (0.8); -webkit-transform: scale (0.8);
    -ms-transform: scale (0.8); opacity:1}.phonecpu{display:none}}}
	 
					
				
			 
		
Question
Manivani
Извиняюсь за многабуков внизу( все однотипное правд но на всякий случай скинул весь блок). Делаю игру ( угадай число) и натолкнулся на проблемку.
Parse error: syntax error, unexpected $end in /home/u177089695/public_html/gam2.php on line 203
Не работает именно из за кейсов, т.к. без них игра работает. Подскажите что не так сделал пожалуйста!
switch ($t) {case 1:?><table> <tr> <td style="background-images: url(images/cat/1.png);"></td> </tr></table><?php break;case 2:?><table> <tr> <td style="background-images: url(images/cat/2.png);"></td> </tr></table><?php break;case 3:?><table> <tr> <td style="background-images: url(images/cat/3.png);"></td> </tr></table><?php break;case 4:?><table> <tr> <td style="background-images: url(images/cat/4.png);"></td> </tr></table><?php break;case 5:?><table> <tr> <td style="background-images: url(images/cat/5.png);"></td> </tr></table><?php break;case 6:?><table> <tr> <td style="background-images: url(images/cat/6.png);"></td> </tr></table><?php break;case 7:?><table> <tr> <td style="background-images: url(images/cat/7.png);"></td> </tr></table><?php break;case 8:?><table> <tr> <td style="background-images: url(images/cat/8.png);"></td> </tr></table><?php break;case 9:?><table> <tr> <td style="background-images: url(images/cat/9.png);"></td> </tr></table><?php break;case 10:?><table> <tr> <td style="background-images: url(images/cat/10.png);"></td> </tr></table><?php break;case 11:?><table> <tr> <td style="background-images: url(images/cat/11.png);"></td> </tr></table><?php break;case 12:?><table> <tr> <td style="background-images: url(images/cat/12.png);"></td> </tr></table><?php break;case 13:?><table> <tr> <td style="background-images: url(images/cat/13.png);"></td> </tr></table><?php break;case 14:?><table> <tr> <td style="background-images: url(images/cat/14.png);"></td> </tr></table><?php break;default: echo "Котеечка сгорел!";?> </body> </html>Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.