Topic: carousel-multi-item problem
wtj123 pro asked 6 years ago
When using PHP echo command to place some HTML codes, which includes the button or the a elements, into the carousel-multi-item component, the button or the a elements won't work anymore. Can you help me to solve this problem? Thanks!
wtj123 pro answered 6 years ago
Start your code here (profile.php)<?php include("loggedInStatus.php"); if (!$loggedInStatus) { header("location: index.php"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>神方電腦城</title> <!-- Font Awesome --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- Material Design Bootstrap --> <link href="css/mdb.min.css" rel="stylesheet"> <!-- custom styles --> <link href="css/style.css" rel="stylesheet"> </head> <body> <!-- NEW PRODUCTS SECTION --> <section id="new-products" style="margin-top: 100px"> <!--Carousel Wrapper--> <div id="multi-item-example" class="container carousel slide carousel-multi-item" data-ride="carousel"> <h3 class="indigo-text font-weight-bold">新產品</h3> <!--Indicators--> <!-- <ol class="carousel-indicators"> <li data-target="#multi-item-example" data-slide-to="0" class="active"></li> <li data-target="#multi-item-example" data-slide-to="1"></li> <li data-target="#multi-item-example" data-slide-to="2"></li> </ol> --> <!--/.Indicators--> <!--Slides--> <div class="carousel-inner" role="listbox" id="get_newProduct"> </div> <!--/.Slides--> <!--Controls--> <div class="controls-top"> <a class="btn-floating" href="#multi-item-example" data-slide="prev"><i class="fa fa-chevron-left"></i></a> <a class="btn-floating" href="#multi-item-example" data-slide="next"><i class="fa fa-chevron-right"></i></a> </div> <!--/.Controls--> </div> <!--/.Carousel Wrapper--> </section> <!-- NEW PRODUCTS SECTION --> <!-- SCRIPTS --> <!-- JQuery --> <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script> <!-- Bootstrap tooltips --> <script type="text/javascript" src="js/popper.min.js"></script> <!-- Bootstrap core JavaScript --> <script type="text/javascript" src="js/bootstrap.min.js"></script> <!-- MDB core JavaScript --> <!-- main JavaScript --> <script type="text/javascript" src="js/main.js"></script> <script type="text/javascript" src="js/mdb.min.js"></script> </body> </html> (getNewTopProductAction.php)
wtj123 pro commented 6 years ago
I found if the is not been added in the card component, the button and the a elements can work perfectly. I don't know why?wtj123 pro commented 6 years ago
card-img-overlayBartłomiej Malanowski staff commented 6 years ago
could you please show us live demo of this issue?FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Bartłomiej Malanowski staff commented 6 years ago
Yes, we can. Could you please share your code with us?